summaryrefslogtreecommitdiff
path: root/t/t7900-maintenance.sh
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2020-12-09 19:16:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-12-10 00:25:20 (GMT)
commit610a3fc9536d7016fd850d622f41bf884c290062 (patch)
tree73bd651403171b6bfdab38d8a8cc5ddbbf8f2992 /t/t7900-maintenance.sh
parentd702cb9e890d09c4aa82eadaa9282feca95000e9 (diff)
downloadgit-610a3fc9536d7016fd850d622f41bf884c290062.zip
git-610a3fc9536d7016fd850d622f41bf884c290062.tar.gz
git-610a3fc9536d7016fd850d622f41bf884c290062.tar.bz2
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 <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7900-maintenance.sh')
-rwxr-xr-xt/t7900-maintenance.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh
index ee91a71..e4fcee8 100755
--- a/t/t7900-maintenance.sh
+++ b/t/t7900-maintenance.sh
@@ -420,7 +420,7 @@ test_expect_success 'start from empty cron table' '
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance start &&
# start registers the repo
- git config --get --global maintenance.repo "$(pwd)" &&
+ git config --get --global --fixed-value maintenance.repo "$(pwd)" &&
grep "for-each-repo --config=maintenance.repo maintenance run --schedule=daily" cron.txt &&
grep "for-each-repo --config=maintenance.repo maintenance run --schedule=hourly" cron.txt &&
@@ -431,7 +431,7 @@ test_expect_success 'stop from existing schedule' '
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance stop &&
# stop does not unregister the repo
- git config --get --global maintenance.repo "$(pwd)" &&
+ git config --get --global --fixed-value maintenance.repo "$(pwd)" &&
# Operation is idempotent
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance stop &&