]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-p4.py
git-p4: add failing test for "git-p4: match branches case insensitively if configured"
[thirdparty/git.git] / git-p4.py
index 5b79920f46a972437ff05966d042a84d44f050d9..c0a3068b6f3994a0389f5458f7b35e06ee589519 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -3325,7 +3325,9 @@ class P4Sync(Command, P4UserMap):
             if currentChange < change:
                 earliestCommit = "^%s" % next
             else:
-                latestCommit = "%s" % next
+                if next == latestCommit:
+                    die("Infinite loop while looking in ref %s for change %s. Check your branch mappings" % (ref, change))
+                latestCommit = "%s^@" % next
 
         return ""