Message ID | 1237289706d3786b332c8f5930402088a6382258.1605801143.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | config: add --literal-value option | expand |
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index ef56b08070..74e0f84c0a 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -1949,4 +1949,20 @@ test_expect_success 'set all config with value_regex' ' test_cmp expect .git/config ' +test_expect_success '--replace-all and value_regex' ' + q_to_tab >.git/config <<-\EOF && + [abc] + Qkey = one + Qkey = two + Qkey = three + EOF + q_to_tab >expect <<-\EOF && + [abc] + Qkey = four + Qkey = three + EOF + git config --replace-all abc.key four "o+" && + test_cmp expect .git/config +' + test_done