aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Storm-Olsen <mstormo_git@storm-olsen.com>2007-06-07 15:28:04 +0200
committerMarius Storm-Olsen <mstormo_git@storm-olsen.com>2007-06-07 15:28:04 +0200
commitc4b33253c221d928f3edde71123a44765495b31a (patch)
tree4afd7eb1e08a262a28c22bfbad3341a83b0d6ec4
parentdb775559c2d866de895cc36532ddff6b1ebbeda9 (diff)
downloadgit-c4b33253c221d928f3edde71123a44765495b31a.tar.gz
git-c4b33253c221d928f3edde71123a44765495b31a.tar.xz
Exclude the HEAD symbolic ref from the list of known branches
Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
-rwxr-xr-xcontrib/fast-import/git-p42
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index ad023f203..965b391cd 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/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: