OSDN Git Service

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 88ea12c..d03ba0b 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/"):]