]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3301-notes.sh
Merge branch 'na/notes-displayref-is-not-boolean'
[thirdparty/git.git] / t / t3301-notes.sh
index 8f4330300707191fe1fcf94e0f3ea29ac55d3c4e..ca60faf48005e12687b990b7c64edc825d91a19f 100755 (executable)
@@ -672,6 +672,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 &&