summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a69551)
raw | patch | inline | side by side (parent: 6a69551)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Mon, 29 Mar 2010 13:05:57 +0000 (15:05 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 30 Mar 2010 04:18:07 +0000 (21:18 -0700) |
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>
(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>
t/t3301-notes.sh | patch | blob | history |
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
index 1d6cd45b55a2ae2e0a7d6728b04112d1c0f43446..5410a6d98138d571f5d8fd6256e689888a81b825 100755 (executable)
--- a/t/t3301-notes.sh
+++ b/t/t3301-notes.sh
test_must_fail git notes show HEAD^
'
+cat >expect <<EOF
+d423f8c refs/notes/commits@{0}: notes: Notes added by 'git notes add'
+EOF
+
+test_expect_failure 'create reflog entry' '
+ git reflog show refs/notes/commits >output &&
+ test_cmp expect output
+'
+
test_expect_success 'edit existing notes' '
MSG=b3 git notes edit &&
test ! -f .git/NOTES_EDITMSG &&