Re: [PATCH v3 19/32] setup.c: support multi-checkout repo setup
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Oct 1, 2014, 16:19 UTC
- Message-ID
- <542C2988.6060306@kdbg.org>
- In-Reply-To
- <1411867366-3821-20-git-send-email-pclouds@gmail.com>
Am 28.09.2014 um 03:22 schrieb Nguyễn Thái Ngọc Duy:
Show 10 quoted lines
> +test_expect_success 'GIT_DIR set (2)' ' > + echo "gitdir: repo.git/repos/foo" >gitfile && > + echo "$TRASH_DIRECTORY/repo.git" >repo.git/repos/foo/commondir && > + ( > + cd work && > + GIT_DIR=../gitfile git rev-parse --git-common-dir >actual && > + test-path-utils real_path "$TRASH_DIRECTORY/repo.git" >expect && > + test_cmp expect actual > + ) > +'
This requires the following fixup because MinGW git will understand only DOS style absolute paths, but $TRASH_DIRECTORY is in POSIX-MSYS-style /c/foo/bar.
--- 8< --- Subject: [PATCH] fixup! setup.c: support multi-checkout repo setup
Signed-off-by: Johannes Sixt <j6t@kdbg.org> --- t/t1501-worktree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t1501-worktree.sh b/t/t1501-worktree.sh index e6ac7a4..4df7a2f 100755 --- a/t/t1501-worktree.sh +++ b/t/t1501-worktree.sh @@ -366,7 +366,7 @@ test_expect_success 'GIT_DIR set (1)' ' test_expect_success 'GIT_DIR set (2)' ' echo "gitdir: repo.git/repos/foo" >gitfile && - echo "$TRASH_DIRECTORY/repo.git" >repo.git/repos/foo/commondir && + echo "$(pwd)/repo.git" >repo.git/repos/foo/commondir && ( cd work && GIT_DIR=../gitfile git rev-parse --git-common-dir >actual &&
-- 2.0.0.12.gbcf935e