Chromium Code Reviews| Index: gclient_utils.py |
| diff --git a/gclient_utils.py b/gclient_utils.py |
| index c394862f76645aaef15b9352f68a3585be422998..5fb2f69e05e9e251fb66d80a69298278200ad6f2 100644 |
| --- a/gclient_utils.py |
| +++ b/gclient_utils.py |
| @@ -76,6 +76,10 @@ def SplitUrlRevision(url): |
| components = re.search(regex, url).groups() |
| else: |
| components = url.split('@', 1) |
|
bradn
2014/04/10 22:19:27
Couldn't you just change this to use rsplit instea
Sheridan Rawlins
2014/04/11 01:05:46
Well, the code handles urls that don't lock the DE
|
| + if url.startswith('git@'): |
|
bradn
2014/04/10 22:19:27
Technically can't these be any username?
Though wi
Sheridan Rawlins
2014/04/11 01:05:46
Yes; Done.
|
| + components = components[1].split('@', 1) |
| + components[0] = 'git@' + components[0] |
| + |
| if len(components) == 1: |
| components += [None] |
| return tuple(components) |