aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-28 21:52:28 -0700
committerJunio C Hamano <gitster@pobox.com>2010-03-28 21:52:28 -0700
commit3b37d9c17efd199a237435f7d8573008f6aa68c1 (patch)
tree4edc1150761b99e4624a527aa3adc2c2282d97c9 /t
parentff0a181fa6580d29ce0ab7abf79780a1fa3c5555 (diff)
parent74884b524e7e12b3419264d3180de785a9e39fa5 (diff)
downloadgit-3b37d9c17efd199a237435f7d8573008f6aa68c1.tar.gz
git-3b37d9c17efd199a237435f7d8573008f6aa68c1.tar.xz
Merge branch 'sb/notes-parse-opt'
* sb/notes-parse-opt: notes: rework subcommands and parse options Conflicts: builtin/notes.c
Diffstat (limited to 't')
-rwxr-xr-xt/t3301-notes.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
index a4a0b1d6c..1d6cd45b5 100755
--- a/t/t3301-notes.sh
+++ b/t/t3301-notes.sh
@@ -378,6 +378,17 @@ test_expect_success 'append to existing note with "git notes append"' '
test_cmp expect output
'
+cat > expect_list << EOF
+c18dc024e14f08d18d14eea0d747ff692d66d6a3 1584215f1d29c65e99c6c6848626553fdd07fd75
+c9c6af7f78bc47490dbf3e822cf2f3c24d4b9061 268048bfb8a1fb38e703baceb8ab235421bf80c5
+4b6ad22357cc8a1296720574b8d2fbc22fab0671 bd1753200303d0a0344be813e504253b3d98e74d
+EOF
+
+test_expect_success '"git notes list" does not expand to "git notes list HEAD"' '
+ git notes list > output &&
+ test_cmp expect_list output
+'
+
test_expect_success 'appending empty string does not change existing note' '
git notes append -m "" &&
git notes show > output &&