From: Marius Storm-Olsen Date: Thu, 7 Jun 2007 13:28:04 +0000 (+0200) Subject: Exclude the HEAD symbolic ref from the list of known branches X-Git-Tag: v1.5.3-rc0~65^2^2~20^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c4b33253c221d928f3edde71123a44765495b31a;p=git.git Exclude the HEAD symbolic ref from the list of known branches Signed-off-by: Marius Storm-Olsen --- 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: