summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-12-08 15:11:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-08 15:11:19 -0800
commitd702cb9e890d09c4aa82eadaa9282feca95000e9 (patch)
tree95473c0203567b8e0e512165895540d92baeaf57 /t
parentMerge branch 'ds/config-literal-value' (diff)
parentmaintenance: use 'git config --fixed-value' (diff)
downloadtgif-d702cb9e890d09c4aa82eadaa9282feca95000e9.tar.xz
Merge branch 'ds/maintenance-part-3'
"git maintenance" command had trouble working in a directory whose pathname contained an ERE metacharacter like '+'. * ds/maintenance-part-3: maintenance: use 'git config --fixed-value'
Diffstat (limited to 't')
-rwxr-xr-xt/t7900-maintenance.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t7900-maintenance.sh b/t/t7900-maintenance.sh
index d9e68bb2bf..ee91a714b9 100755
--- a/t/t7900-maintenance.sh
+++ b/t/t7900-maintenance.sh
@@ -404,6 +404,18 @@ test_expect_success 'register and unregister' '
test_cmp before actual
'
+test_expect_success !MINGW 'register and unregister with regex metacharacters' '
+ META="a+b*c" &&
+ git init "$META" &&
+ git -C "$META" maintenance register &&
+ git config --get-all --show-origin maintenance.repo &&
+ git config --get-all --global --fixed-value \
+ maintenance.repo "$(pwd)/$META" &&
+ git -C "$META" maintenance unregister &&
+ test_must_fail git config --get-all --global --fixed-value \
+ maintenance.repo "$(pwd)/$META"
+'
+
test_expect_success 'start from empty cron table' '
GIT_TEST_CRONTAB="test-tool crontab cron.txt" git maintenance start &&