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)
git-p4

diff --git a/git-p4 b/git-p4
index ad023f2..965b391 100755 (executable)
--- a/git-p4
+++ b/git-p4
@@ -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: