diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-12-02 17:36:30 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-02 11:14:07 -0800 |
commit | 21f0e8506119dc18c0b2396b5854d850cba7b00d (patch) | |
tree | e29ea3579d3e28c0e4c97b6ce696de032daf19bf /t/t1405-main-ref-store.sh | |
parent | show-branch: show reflog message (diff) | |
download | tgif-21f0e8506119dc18c0b2396b5854d850cba7b00d.tar.xz |
test-ref-store: don't add newline to reflog message
By convention, reflog messages always end in '\n', so
before we would print blank lines between entries.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1405-main-ref-store.sh')
-rwxr-xr-x | t/t1405-main-ref-store.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t1405-main-ref-store.sh b/t/t1405-main-ref-store.sh index 49718b7ea7..a600bedf2c 100755 --- a/t/t1405-main-ref-store.sh +++ b/t/t1405-main-ref-store.sh @@ -89,13 +89,12 @@ test_expect_success 'for_each_reflog()' ' test_expect_success 'for_each_reflog_ent()' ' $RUN for-each-reflog-ent HEAD >actual && head -n1 actual | grep one && - tail -n2 actual | head -n1 | grep recreate-main + tail -n1 actual | grep recreate-main ' test_expect_success 'for_each_reflog_ent_reverse()' ' $RUN for-each-reflog-ent-reverse HEAD >actual && - head -n1 actual | grep recreate-main && - tail -n2 actual | head -n1 | grep one + tail -n1 actual | grep one ' test_expect_success 'reflog_exists(HEAD)' ' |