Skip to content

Commit 75a3c67

Browse files
committed
t4203: avoid implicit discovery of a bare repository
Preparing for `safe.bareRepository` defaulting to `explicit` (see 8d1a744), append a `--git-dir=.` after the `-C <dir>` argument. That way, the gitdir discovery is no longer necessary (it is not the subject of that test case, anyway). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e1f6c2a commit 75a3c67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/t4203-mailmap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ test_expect_success 'set up mailmap location tests' '
943943
'
944944

945945
test_expect_success 'bare repo with --work-tree finds mailmap at top-level' '
946-
git -C loc-bare --work-tree=. log -1 --format=%aE >actual &&
946+
git -C loc-bare --git-dir=. --work-tree=. log -1 --format=%aE >actual &&
947947
echo new@example.com >expect &&
948948
test_cmp expect actual
949949
'

0 commit comments

Comments
 (0)