From 2f968c943b1c6f61f867fa9b87105836e0e5f354 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 30 Apr 2009 14:30:28 -0700 Subject: [PATCH] Fix ssh://user@hostname/ style URLs parsing 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 --- git_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(): pass URI_SCP = re.compile(r'^([^@:]*@?[^:/]{1,}):') -URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/])/') +URI_ALL = re.compile(r'^([a-z][a-z+]*)://([^@/]*@?[^/]*)/') def _preconnect(url): m = URI_ALL.match(url)