Skip to content

Commit d80fdc1

Browse files
mjcheethamdscho
authored andcommitted
t7900-maintenance.sh: reset config between tests
Tests in t7900 assume the state of the `maintenance.strategy` config setting; set/unset by previous tests. Correct this by explictly unsetting and re-setting the config at the start of the tests. Signed-off-by: Matthew John Cheetham <[email protected]>
1 parent 13f2855 commit d80fdc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t7900-maintenance.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ test_expect_success 'invalid --schedule value' '
619619
'
620620

621621
test_expect_success '--schedule inheritance weekly -> daily -> hourly' '
622+
git config --unset maintenance.strategy &&
622623
git config maintenance.loose-objects.enabled true &&
623624
git config maintenance.loose-objects.schedule hourly &&
624625
git config maintenance.commit-graph.enabled true &&

0 commit comments

Comments
 (0)