diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-28 13:18:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-28 13:18:04 -0700 |
commit | 7f554a4f694dc5e9a3cb42887546a121ff9d2b93 (patch) | |
tree | 37214dbf4da7779338af9a7156dae1eb31f99be2 /t | |
parent | Merge branch 'hn/refs-debug-empty-prefix' (diff) | |
parent | multi-pack-index: fix potential segfault without sub-command (diff) | |
download | tgif-7f554a4f694dc5e9a3cb42887546a121ff9d2b93.tar.xz |
Merge branch 'tb/reverse-midx'
The code that gives an error message in "git multi-pack-index" when
no subcommand is given tried to print a NULL pointer as a strong,
which has been corrected.
* tb/reverse-midx:
multi-pack-index: fix potential segfault without sub-command
Diffstat (limited to 't')
-rwxr-xr-x | t/t5319-multi-pack-index.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5319-multi-pack-index.sh b/t/t5319-multi-pack-index.sh index 7609f1ea64..3d4d9f10c3 100755 --- a/t/t5319-multi-pack-index.sh +++ b/t/t5319-multi-pack-index.sh @@ -837,4 +837,9 @@ test_expect_success 'load reverse index when missing .idx, .pack' ' ) ' +test_expect_success 'usage shown without sub-command' ' + test_expect_code 129 git multi-pack-index 2>err && + ! test_i18ngrep "unrecognized subcommand" err +' + test_done |