diff options
| author | Shawn O. Pearce <sop@google.com> | 2009-04-30 14:30:28 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2009-04-30 14:30:28 -0700 |
| commit | 2f968c943b1c6f61f867fa9b87105836e0e5f354 (patch) | |
| tree | 8593b144cfb90a1780ec86591b45039c4c86422f | |
| parent | 2b5b4ac29275ee49184a8aee98f60b744890f5bb (diff) | |
| download | git-repo-2f968c943b1c6f61f867fa9b87105836e0e5f354.tar.gz | |
Fix ssh://user@hostname/ style URLs parsingv1.6.7.3
I only tested this with ssh://hostname/ style URLs, so I failed
to test ssh://user@hostname/ format, which failed if the hostname
portion was longer than 1 character.
Signed-off-by: Shawn O. Pearce <sop@google.com>
| -rw-r--r-- | git_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index 45264611..6ea505f9 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -385,7 +385,7 @@ def close_ssh(): | |||
| 385 | pass | 385 | pass |
| 386 | 386 | ||
| 387 | URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') | 387 | URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') |
| 388 | URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/])/') | 388 | URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/') |
| 389 | 389 | ||
| 390 | def _preconnect(url): | 390 | def _preconnect(url): |
| 391 | m = URI_ALL.match(url) | 391 | m = URI_ALL.match(url) |
