Re: [PATCH v3 19/32] setup.c: support multi-checkout repo setup

2014-10-01 Thread Johannes Sixt
Am 28.09.2014 um 03:22 schrieb Nguyễn Thái Ngọc Duy: +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

[PATCH v3 19/32] setup.c: support multi-checkout repo setup

2014-09-27 Thread Nguyễn Thái Ngọc Duy
The repo setup procedure is updated to detect $GIT_DIR/commondir and set $GIT_COMMON_DIR properly. The core.worktree is ignored when $GIT_COMMON_DIR is set. This is because the config file is shared in multi-checkout setup, but checkout directories _are_ different. Making core.worktree effective