Fixed the check to make sure to exclude the HEAD symbolic refs when updating
[gitweb.git] / 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/"):]