We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbaca1 commit e931395Copy full SHA for e931395
t/t1300-config.sh
@@ -1588,4 +1588,25 @@ test_expect_success '--local requires a repo' '
1588
test_expect_code 128 nongit git config --local foo.bar
1589
'
1590
1591
+test_expect_failure '--replace-all does not invent newlines' '
1592
+ q_to_tab >.git/config <<-\EOF &&
1593
+ [abc]key
1594
+ QkeepSection
1595
+ [xyz]
1596
+ Qkey = 1
1597
+ [abc]
1598
+ Qkey = a
1599
+ EOF
1600
+ q_to_tab >expect <<-\EOF &&
1601
1602
1603
1604
1605
1606
+ Qkey = b
1607
1608
+ git config --replace-all abc.key b &&
1609
+ test_cmp .git/config expect
1610
+'
1611
+
1612
test_done
0 commit comments