diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2018-04-03 18:28:14 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-06 08:30:03 +0900 |
commit | 46fc89ce74b46e88764c796b3ab20d5ab90a5e96 (patch) | |
tree | 9482654c6bde0e91f72fe6f42b7ceff5e8111783 /t/t1300-config.sh | |
parent | e9313952bf85bcc8b602f582b2e71660d670f97b (diff) | |
download | git-46fc89ce74b46e88764c796b3ab20d5ab90a5e96.tar.gz |
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-x | t/t1300-config.sh | 2 |
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 |