summaryrefslogtreecommitdiff
path: root/contrib/fast-import/git-p4
diff options
context:
space:
mode:
authorMarius Storm-Olsen <mstormo_git@storm-olsen.com>2007-06-07 13:28:04 (GMT)
committerMarius Storm-Olsen <mstormo_git@storm-olsen.com>2007-06-07 13:28:04 (GMT)
commitc4b33253c221d928f3edde71123a44765495b31a (patch)
tree4afd7eb1e08a262a28c22bfbad3341a83b0d6ec4 /contrib/fast-import/git-p4
parentdb775559c2d866de895cc36532ddff6b1ebbeda9 (diff)
downloadgit-c4b33253c221d928f3edde71123a44765495b31a.zip
git-c4b33253c221d928f3edde71123a44765495b31a.tar.gz
git-c4b33253c221d928f3edde71123a44765495b31a.tar.bz2
Exclude the HEAD symbolic ref from the list of known branches
Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
Diffstat (limited to 'contrib/fast-import/git-p4')
-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 ad023f2..965b391 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: