Index: gclient_scm.py |
diff --git a/gclient_scm.py b/gclient_scm.py |
index ab381bf8a48d8ad3cd43a59133c7080ef3774a9b..00f8cd069a42d6bec7a4860ab582bbc2cacff955 100644 |
--- a/gclient_scm.py |
+++ b/gclient_scm.py |
@@ -125,7 +125,12 @@ class GitWrapper(SCMWrapper): |
if args: |
raise gclient_utils.Error("Unsupported argument(s): %s" % ",".join(args)) |
- components = self.url.split("@") |
+ if self.url.startswith('ssh:'): |
+ # Make sure ssh://test@example.com/test.git@stable works |
+ regex = "(ssh://(?:[\w]+@)?[-\w:\.]+/[-\w\.]+)(?:@([\w/]+))?" |
M-A Ruel
2009/11/07 19:29:40
Doesn't the regex work with svn url? If so, no nee
M-A Ruel
2009/11/09 16:39:24
You need to use r"" btw.
|
+ components = re.search(regex, self.url).groups() |
+ else: |
+ components = self.url.split("@") |
url = components[0] |
revision = None |
if options.revision: |