]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3301: test proper exit response to no-value notes.displayRef.
authorNate Avers <nate@roosteregg.cc>
Mon, 23 Nov 2020 03:23:42 +0000 (22:23 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Nov 2020 18:42:25 +0000 (10:42 -0800)
Signed-off-by: Nate Avers <nate@roosteregg.cc>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3301-notes.sh

index d3fa298c6a1b382a2c6818495a401753a7dd4375..d3694fad8a72fd7189f3380b1323bfc9abbdfc2d 100755 (executable)
@@ -653,6 +653,11 @@ test_expect_success 'notes.displayRef respects order' '
        test_cmp expect-both-reversed actual
 '
 
+test_expect_success 'notes.displayRef with no value handled gracefully' '
+       test_must_fail git -c notes.displayRef log -0 --notes &&
+       test_must_fail git -c notes.displayRef diff-tree --notes HEAD
+'
+
 test_expect_success 'GIT_NOTES_DISPLAY_REF works' '
        GIT_NOTES_DISPLAY_REF=refs/notes/commits:refs/notes/other \
                git log -2 >actual &&