mirror of
https://github.com/git/git.git
synced 2024-10-30 05:47:53 +01:00
t3301: test proper exit response to no-value notes.displayRef.
Signed-off-by: Nate Avers <nate@roosteregg.cc> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c3eb95a0d7
commit
45fef1599a
1 changed files with 5 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue