Skip to content

Commit 45fef15

Browse files
nateaversgitster
authored andcommitted
t3301: test proper exit response to no-value notes.displayRef.
Signed-off-by: Nate Avers <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c3eb95a commit 45fef15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t3301-notes.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,11 @@ test_expect_success 'notes.displayRef respects order' '
653653
test_cmp expect-both-reversed actual
654654
'
655655

656+
test_expect_success 'notes.displayRef with no value handled gracefully' '
657+
test_must_fail git -c notes.displayRef log -0 --notes &&
658+
test_must_fail git -c notes.displayRef diff-tree --notes HEAD
659+
'
660+
656661
test_expect_success 'GIT_NOTES_DISPLAY_REF works' '
657662
GIT_NOTES_DISPLAY_REF=refs/notes/commits:refs/notes/other \
658663
git log -2 >actual &&

0 commit comments

Comments
 (0)