@matheusbsbs / matheus-bagliano / commits / 4d80fa8f75
Fork 0

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 <git@drmicha.warpmail.net> Acked-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael J Gruber committed Mar 29, 2010 at 15:05 UTC 4d80fa8f7562766013e0c589f270f74c25448755
1 file changed +9
t/t3301-notes.sh
+9
@@ -65,6 +65,15 @@ test_expect_success 'create notes' '
65 test_must_fail git notes show HEAD^
66 '
67
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 +
77 test_expect_success 'edit existing notes' '
78 MSG=b3 git notes edit &&
79 test ! -f .git/NOTES_EDITMSG &&