From 6df066d26709c6e9b1032e43b8e5432f39d8a973 Mon Sep 17 00:00:00 2001 From: Ryan Pessa Date: Tue, 15 Dec 2015 13:29:07 -0600 Subject: [PATCH] allow git clone over SSH and HTTP(S) --- pythonforandroid/recipe.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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):