summaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-04-03 16:28:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-05 23:30:03 (GMT)
commit46fc89ce74b46e88764c796b3ab20d5ab90a5e96 (patch)
tree9482654c6bde0e91f72fe6f42b7ceff5e8111783 /t/t1300-config.sh
parente9313952bf85bcc8b602f582b2e71660d670f97b (diff)
downloadgit-46fc89ce74b46e88764c796b3ab20d5ab90a5e96.zip
git-46fc89ce74b46e88764c796b3ab20d5ab90a5e96.tar.gz
git-46fc89ce74b46e88764c796b3ab20d5ab90a5e96.tar.bz2
config --replace-all: avoid extra line breaks
When replacing multiple config entries at once, we did not re-set the flag that indicates whether we need to insert a new-line before the new entry. As a consequence, an extra new-line was inserted under certain circumstances. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index cef8163..8f37ffa 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -1588,7 +1588,7 @@ test_expect_success '--local requires a repo' '
test_expect_code 128 nongit git config --local foo.bar
'
-test_expect_failure '--replace-all does not invent newlines' '
+test_expect_success '--replace-all does not invent newlines' '
q_to_tab >.git/config <<-\EOF &&
[abc]key
QkeepSection