]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1405: check for_each_reflog_ent_reverse() more thoroughly
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 2 Dec 2021 17:36:31 +0000 (17:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Dec 2021 19:14:08 +0000 (11:14 -0800)
If we are checking for a certain ordering, we should check that there are two
entries. Do this by mirroring the preceding test.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1405-main-ref-store.sh

index a600bedf2cd638257eb087f0190989b47d2e1311..76b154584099d685a63288367c7fee4b2a02fe4e 100755 (executable)
@@ -94,6 +94,7 @@ test_expect_success 'for_each_reflog_ent()' '
 
 test_expect_success 'for_each_reflog_ent_reverse()' '
        $RUN for-each-reflog-ent-reverse HEAD >actual &&
+       head -n1 actual | grep recreate-main &&
        tail -n1 actual | grep one
 '