Code

Exclude the HEAD symbolic ref from the list of known branches
authorMarius Storm-Olsen <mstormo_git@storm-olsen.com>
Thu, 7 Jun 2007 13:28:04 +0000 (15:28 +0200)
committerMarius Storm-Olsen <mstormo_git@storm-olsen.com>
Thu, 7 Jun 2007 13:28:04 +0000 (15:28 +0200)
Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
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: