Code

Fixed the check to make sure to exclude the HEAD symbolic refs when updating
authorSimon Hausmann <simon@lst.de>
Sat, 9 Jun 2007 22:22:30 +0000 (00:22 +0200)
committerSimon Hausmann <simon@lst.de>
Sat, 9 Jun 2007 22:22:30 +0000 (00:22 +0200)
the remotes/p4 branches from origin.

Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4

index 88ea12cb37416a51e46e521bb5713f2906f756f0..d03ba0b6ad4c570e33d45538ee9e3ec84d18c4ef 100755 (executable)
@@ -962,7 +962,7 @@ class P4Sync(Command):
 
         for line in read_pipe_lines("git rev-parse --symbolic --remotes"):
             line = line.strip()
-            if (not line.startswith("origin/")) or line.endswith("HEAD\n"):
+            if (not line.startswith("origin/")) or line.endswith("HEAD"):
                 continue
 
             headName = line[len("origin/"):]