Skip to content

Commit 610a3fc

Browse files
steadmongitster
authored andcommitted
t7900: use --fixed-value in git-maintenance tests
Use --fixed-value in git-config calls in the git-maintenance tests, so that the tests will continue to work even if the repo path contains regexp metacharacters. Signed-off-by: Josh Steadmon <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d702cb9 commit 610a3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t7900-maintenance.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ test_expect_success 'start from empty cron table' '
420420
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance start &&
421421
422422
# start registers the repo
423-
git config --get --global maintenance.repo "$(pwd)" &&
423+
git config --get --global --fixed-value maintenance.repo "$(pwd)" &&
424424
425425
grep "for-each-repo --config=maintenance.repo maintenance run --schedule=daily" cron.txt &&
426426
grep "for-each-repo --config=maintenance.repo maintenance run --schedule=hourly" cron.txt &&
@@ -431,7 +431,7 @@ test_expect_success 'stop from existing schedule' '
431431
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance stop &&
432432
433433
# stop does not unregister the repo
434-
git config --get --global maintenance.repo "$(pwd)" &&
434+
git config --get --global --fixed-value maintenance.repo "$(pwd)" &&
435435
436436
# Operation is idempotent
437437
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance stop &&

0 commit comments

Comments
 (0)