Re: [PATCH v3 18/25] setup.c: support multi-checkout repo setup
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 19, 2014, 20:19 UTC
- Message-ID
- <xmqqlhx697oi.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1392730814-19656-19-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
(Only nitpicks during this round of review).
Show 13 quoted lines
> diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh > index 8f36aa9..d8bdaf4 100755 > --- a/t/t1501-worktree.sh > +++ b/t/t1501-worktree.sh > @@ -346,4 +346,80 @@ test_expect_success 'relative $GIT_WORK_TREE and git subprocesses' ' > test_cmp expected actual > ' > > +test_expect_success 'Multi-worktree setup' ' > + mkdir work && > + mkdir -p repo.git/repos/foo && > + cp repo.git/HEAD repo.git/index repo.git/repos/foo && > + unset GIT_DIR GIT_CONFIG GIT_WORK_TREE
Are these known to be set always when we get to this point? Otherwise please use sane_unset.