Exclude the HEAD symbolic ref from the list of known branches
[gitweb.git] / contrib / fast-import / git-p4
index ad023f203c87bf78c5d5caf2694318921c3900b3..965b391cda870ecd7d174adb00151ccbbcdf36d4 100755 (executable)
@@ -934,7 +934,7 @@ class P4Sync(Command):
             line = line.strip()
 
             ## only import to p4/
-            if not line.startswith('p4/'):
+            if not line.startswith('p4/') or line == "p4/HEAD":
                 continue
             branch = line
             if self.importIntoRemotes: