From: Junio C Hamano Date: Wed, 19 Feb 2014 20:19:41 GMT Subject: Re: [PATCH v3 18/25] setup.c: support multi-checkout repo setup Message-ID: In-Reply-To: <1392730814-19656-19-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: (Only nitpicks during this round of review). > 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.