Merge branch 'hn/reflog-tests'
Prepare tests on ref API to help testing reftable backends. * hn/reflog-tests: refs/debug: trim trailing LF from reflog message test-ref-store: tweaks to for-each-reflog-ent format t1405: check for_each_reflog_ent_reverse() more thoroughly test-ref-store: don't add newline to reflog message show-branch: show reflog message
This commit is contained in:
@ -75,13 +75,13 @@ test_expect_success 'for_each_reflog()' '
|
||||
test_expect_success 'for_each_reflog_ent()' '
|
||||
$RUN for-each-reflog-ent HEAD >actual &&
|
||||
head -n1 actual | grep first &&
|
||||
tail -n2 actual | head -n1 | grep main.to.new
|
||||
tail -n1 actual | grep main.to.new
|
||||
'
|
||||
|
||||
test_expect_success 'for_each_reflog_ent_reverse()' '
|
||||
$RUN for-each-reflog-ent-reverse HEAD >actual &&
|
||||
head -n1 actual | grep main.to.new &&
|
||||
tail -n2 actual | head -n1 | grep first
|
||||
tail -n1 actual | grep first
|
||||
'
|
||||
|
||||
test_expect_success 'reflog_exists(HEAD)' '
|
||||
|
Reference in New Issue
Block a user