Fixed the check to make sure to exclude the HEAD symbolic refs when updating the remotes/p4 branches from origin.
Fixed the check to make sure to exclude the HEAD symbolic refs when updating the remotes/p4 branches from origin. Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
Jun 10, 2007 at 00:22 UTC
7aded26ce870ba2998e276604fc3c18dad6133bd
1 file changed
+1
-1
contrib/fast-import/git-p4
+1
-1
@@ -962,7 +962,7 @@ class P4Sync(Command):
962
963
for line in read_pipe_lines("git rev-parse --symbolic --remotes"):
964
line = line.strip()
965
- if (not line.startswith("origin/")) or line.endswith("HEAD\n"):
965
+ if (not line.startswith("origin/")) or line.endswith("HEAD"):
966
continue
967
968
headName = line[len("origin/"):]