diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index 0b7e4207e1..405d37ca40 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -95,7 +95,7 @@ def report_hook(index, blksize, size): urlretrieve(url, target, report_hook) return target - elif parsed_url.scheme in ('git',): + elif parsed_url.scheme in ('git', 'git+ssh', 'git+http', 'git+https'): if isdir(target): with current_directory(target): shprint(sh.git, 'fetch', '--tags') @@ -105,6 +105,8 @@ def report_hook(index, blksize, size): shprint(sh.git, 'pull', '--recurse-submodules') shprint(sh.git, 'submodule', 'update', '--recursive') else: + if url.startswith('git+'): + url = url[4:] shprint(sh.git, 'clone', '--recursive', url, target) if self.version: with current_directory(target):