diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-05-22 18:29:00 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-22 18:29:00 +0900 |
commit | 99fe1c606925ecd427af6e0338ec18936407ba48 (patch) | |
tree | 8ed84325c439f2161584e2e3efbc8c68d462d4c3 /t | |
parent | Merge branch 'ds/sparse-index-protections' (diff) | |
parent | rev-parse: fix segfault with missing --path-format argument (diff) | |
download | tgif-99fe1c606925ecd427af6e0338ec18936407ba48.tar.xz |
Merge branch 'wm/rev-parse-path-format-wo-arg'
The "rev-parse" command did not diagnose the lack of argument to
"--path-format" option, which was introduced in v2.31 era, which
has been corrected.
* wm/rev-parse-path-format-wo-arg:
rev-parse: fix segfault with missing --path-format argument
Diffstat (limited to 't')
-rwxr-xr-x | t/t1500-rev-parse.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh index deae916707..1c2df08333 100755 --- a/t/t1500-rev-parse.sh +++ b/t/t1500-rev-parse.sh @@ -146,6 +146,10 @@ test_expect_success '--path-format can change in the middle of the command line' test_cmp expect actual ' +test_expect_success '--path-format does not segfault without an argument' ' + test_must_fail git rev-parse --path-format +' + test_expect_success 'git-common-dir from worktree root' ' echo .git >expect && git rev-parse --git-common-dir >actual && |