Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-04-03 19:28:14 +0300
committerJunio C Hamano <gitster@pobox.com>2018-04-06 02:30:03 +0300
commit46fc89ce74b46e88764c796b3ab20d5ab90a5e96 (patch)
tree9482654c6bde0e91f72fe6f42b7ceff5e8111783 /t/t1300-config.sh
parente9313952bf85bcc8b602f582b2e71660d670f97b (diff)
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 cef816325b..8f37ffadb1 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