t7900: fix register dependency
The test `maintenance.auto config option` will fail if any preceding test has run `git maintenance register` since that turns `maintenance.auto` off for that repository and later calls to `unregister` will not turn it back to the default `true` value. Start with a fresh repository in this test. Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bf236ef834
commit
3ae4a7178f
@ -55,6 +55,8 @@ test_expect_success 'run [--auto|--quiet]' '
|
||||
'
|
||||
|
||||
test_expect_success 'maintenance.auto config option' '
|
||||
rm -rf .git &&
|
||||
git init &&
|
||||
GIT_TRACE2_EVENT="$(pwd)/default" git commit --quiet --allow-empty -m 1 &&
|
||||
test_subcommand git maintenance run --auto --quiet <default &&
|
||||
GIT_TRACE2_EVENT="$(pwd)/true" \
|
||||
|
Reference in New Issue
Block a user