mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-10 08:22:54 -05:00
t2406: use --git-dir=. for bare repository worktree repair
To prepare for `safe.bareRepository` defaulting to `explicit` (see
8d1a744820), the test case t2406.10(repair .git file from bare.git)
cannot rely on the implicit discovery of thee bare repository. Simply
add a `--git-dir=.` to the invocation. The `-C bare.git` argument is
still needed so that the `repair` command realizes works on the intended
directory.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a6818366b7
commit
f71488534d
@@ -84,7 +84,7 @@ test_expect_success 'repair .git file from bare.git' '
|
||||
git -C bare.git worktree add --detach ../corrupt &&
|
||||
git -C corrupt rev-parse --absolute-git-dir >expect &&
|
||||
rm -f corrupt/.git &&
|
||||
git -C bare.git worktree repair &&
|
||||
git -C bare.git --git-dir=. worktree repair &&
|
||||
git -C corrupt rev-parse --absolute-git-dir >actual &&
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user