Code

Fix typo in listExistingP4Branches that broke sync.
[git.git] / contrib / fast-import / git-p4
index 0f1285b39b545b8b0c77818652ba7a0123ddc4d2..794286ee8e43394c93c0aae66d540efc2da8d26e 100755 (executable)
@@ -846,8 +846,8 @@ class P4Sync(Command):
             cmdline += " --branches"
 
         for line in read_pipe_lines(cmdline):
-            lie = line.strip()
-            if self.importIntoRemotes and ((not line.startswith("p4/")) or line == "p4/HEAD\n"):
+            line = line.strip()
+            if self.importIntoRemotes and ((not line.startswith("p4/")) or line == "p4/HEAD"):
                 continue
 
             if self.importIntoRemotes: