summaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index a74bcb4c85..bddf5250dc 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -1956,4 +1956,18 @@ test_expect_success 'set all config with value-pattern' '
test_cmp expect actual
'
+test_expect_success '--replace-all and value-pattern' '
+ test_when_finished rm -f config &&
+ git config --file=config --add abc.key one &&
+ git config --file=config --add abc.key two &&
+ git config --file=config --add abc.key three &&
+ git config --file=config --replace-all abc.key four "o+" &&
+ git config --file=config --list >actual &&
+ cat >expect <<-\EOF &&
+ abc.key=four
+ abc.key=three
+ EOF
+ test_cmp expect actual
+'
+
test_done