1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-08 13:36:15 +02:00

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>
This commit is contained in:
Simon Hausmann 2007-06-10 00:22:30 +02:00
parent 5265bfcb06
commit 7aded26ce8

View File

@ -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/"):]