summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/git_config.py b/git_config.py
index e4f4a0ab..bcd6e8d6 100644
--- a/git_config.py
+++ b/git_config.py
@@ -491,6 +491,12 @@ def close_ssh():
491URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') 491URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):')
492URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/') 492URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/')
493 493
494def GetSchemeFromUrl(url):
495 m = URI_ALL.match(url)
496 if m:
497 return m.group(1)
498 return None
499
494def _preconnect(url): 500def _preconnect(url):
495 m = URI_ALL.match(url) 501 m = URI_ALL.match(url)
496 if m: 502 if m: