Skip to content

Commit a712f06

Browse files
committed
t7103: export GIT_DIR after cd into bare repo
To prepare for `safe.bareRepository` defaulting to `explicit`, set and export `GIT_DIR` after entering the bare repo so subsequent commands do not rely on implicit discovery. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d4bfa2d commit a712f06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/t7103-reset-bare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test_expect_success 'hard reset works with GIT_WORK_TREE' '
4343

4444
test_expect_success 'setup bare' '
4545
git clone --bare . bare.git &&
46-
cd bare.git
46+
cd bare.git && GIT_DIR=. && export GIT_DIR
4747
'
4848

4949
test_expect_success '"hard" reset is not allowed in bare' '

0 commit comments

Comments
 (0)