git-p4: place temporary refs used for branch import under refs/git-p4-tmp
authorLars Schneider <larsxschneider@gmail.com>
Wed, 29 Jun 2016 07:35:27 +0000 (09:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jul 2016 22:28:16 +0000 (15:28 -0700)
commitd604176d23a69c7f690f0379b82b789732a4278f
tree0a6a714a5c3c3b0296f766c8020e4b3441224d80
parentcf4c2cfe52be5bd973a4838f73a35d3959ce2f43
git-p4: place temporary refs used for branch import under refs/git-p4-tmp

Git-P4 used to place temporary refs under "git-p4-tmp". Since 3da1f37
Git checks that all refs are placed under "refs". Instruct Git-P4 to
place temporary refs under "refs/git-p4-tmp". There are no backwards
compatibility considerations as these refs are transient.

Use "git show-ref --verify" to check the (non-)existience of the refs
instead of file checks assuming the file-based ref backend.

All refs under "refs" are shared across all worktrees. This is not
desired for temporary Git-P4 refs and will be adressed in a later patch.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Reviewed-by: Vitor Antunes <vitor.hda@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9801-git-p4-branch.sh