diff options
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 6 |
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(): | |||
| 491 | URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') | 491 | URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') |
| 492 | URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/') | 492 | URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/') |
| 493 | 493 | ||
| 494 | def GetSchemeFromUrl(url): | ||
| 495 | m = URI_ALL.match(url) | ||
| 496 | if m: | ||
| 497 | return m.group(1) | ||
| 498 | return None | ||
| 499 | |||
| 494 | def _preconnect(url): | 500 | def _preconnect(url): |
| 495 | m = URI_ALL.match(url) | 501 | m = URI_ALL.match(url) |
| 496 | if m: | 502 | if m: |
