]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9806-git-p4-options.sh
git-p4: support git worktrees
authorLuke Diamand <luke@diamand.org>
Tue, 13 Dec 2016 21:51:28 +0000 (21:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Dec 2016 00:04:53 +0000 (16:04 -0800)
commit378f7be1e74661ff1480cc44a5f039ef85da7288
tree8299bd02a7799328b59d040a1e4dbfc07d1c4ff4
parent8d7a455ed52e2a96debc080dfc011b6bb00db5d2
git-p4: support git worktrees

git-p4 would attempt to find the git directory using
its own specific code, which did not know about git
worktrees.

Rework it to use "git rev-parse --git-dir" instead.

Add test cases for worktree usage and specifying
git directory via --git-dir and $GIT_DIR.

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9800-git-p4-basic.sh
t/t9806-git-p4-options.sh