Code

Fix typo in listExistingP4Branches that broke sync.
authorSimon Hausmann <simon@lst.de>
Mon, 28 May 2007 17:24:57 +0000 (19:24 +0200)
committerSimon Hausmann <simon@lst.de>
Mon, 28 May 2007 17:24:57 +0000 (19:24 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
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: