diff options
author | Nate Avers <nate@roosteregg.cc> | 2020-11-22 22:23:42 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-23 10:42:25 -0800 |
commit | 45fef1599af19404a7d0d80a985b303d665ef4a3 (patch) | |
tree | 209b4a18049e66e717bec2c169b423c7de45e56f /t | |
parent | notes.c: fix a segfault in notes_display_config() (diff) | |
download | tgif-45fef1599af19404a7d0d80a985b303d665ef4a3.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t3301-notes.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index d3fa298c6a..d3694fad8a 100755 --- a/t/t3301-notes.sh +++ b/t/t3301-notes.sh @@ -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 && |