gclient: fix bug in parsing ssh urls
Review URL: http://codereview.chromium.org/402105
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32568 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_utils.py b/gclient_utils.py
index 03d7792..e2cfb11 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -29,7 +29,7 @@
"""Splits url and returns a two-tuple: url, rev"""
if url.startswith('ssh:'):
# Make sure ssh://test@example.com/test.git@stable works
- regex = r"(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\./]+)(?:@([\w/]+))?"
+ regex = r"(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\./]+)(?:@(.+))?"
components = re.search(regex, url).groups()
else:
components = url.split("@")