Skip to content

Commit 4d80fa8

Browse files
Michael J Grubergitster
authored andcommitted
t3301-notes: Test the creation of reflog entries
Test whether the notes code writes reflog entries. It intends to (setting up the reflog messages) but currently does not. Signed-off-by: Michael J Gruber <[email protected]> Acked-by: Johan Herland <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a69551 commit 4d80fa8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t3301-notes.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ test_expect_success 'create notes' '
6565
test_must_fail git notes show HEAD^
6666
'
6767

68+
cat >expect <<EOF
69+
d423f8c refs/notes/commits@{0}: notes: Notes added by 'git notes add'
70+
EOF
71+
72+
test_expect_failure 'create reflog entry' '
73+
git reflog show refs/notes/commits >output &&
74+
test_cmp expect output
75+
'
76+
6877
test_expect_success 'edit existing notes' '
6978
MSG=b3 git notes edit &&
7079
test ! -f .git/NOTES_EDITMSG &&

0 commit comments

Comments
 (0)