Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index f86a781765a4ab605459d63fbc8628a77f268dae..9e1049b88f572da23c4e2a814ef566f51c5c6b12 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -328,8 +328,9 @@ class Settings(object): |
| """Return true if this repo looks like it's using git-svn.""" |
| if self.is_git_svn is None: |
| # If you have any "svn-remote.*" config keys, we think you're using svn. |
|
iannucci
2014/06/30 18:08:11
can you update the comment too? Something like:
I
|
| - self.is_git_svn = RunGitWithCode( |
| - ['config', '--local', '--get-regexp', r'^svn-remote\.'])[0] == 0 |
| + code, result = RunGitWithCode( |
| + ['config', '--local', '--get-regexp', r'^svn-remote\..*\.url']) |
| + self.is_git_svn = (code == 0 and "svn://" in result) |
| return self.is_git_svn |
| def GetSVNBranch(self): |