Index: scm.py |
=================================================================== |
--- scm.py (revision 43948) |
+++ scm.py (working copy) |
@@ -172,7 +172,9 @@ |
for ref in remotes: |
match = git_svn_re.search( |
GIT.Capture(['cat-file', '-p', ref], cwd)[0]) |
- if match: |
+ if match and match.group(1) not in svn_refs: |
M-A Ruel
2010/04/08 16:36:38
nit: you could do instead
if match:
# To prefer
|
+ # To prefer local refs over remote ones we only set the first occurence. |
+ # The assumption being local refs are usually first. |
svn_refs[match.group(1)] = ref |
svn_branch = '' |