diff options
author | Wolfgang Müller <wolf@oriole.systems> | 2021-05-17 10:02:42 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-17 18:39:29 +0900 |
commit | 99fc555188681caeedc983b9fc982d6dc8ee2a8c (patch) | |
tree | c572e55b79db540fe660e753a8c9d9a606b28203 /merge-blobs.h | |
parent | Git 2.31.1 (diff) | |
download | tgif-99fc555188681caeedc983b9fc982d6dc8ee2a8c.tar.xz |
rev-parse: fix segfault with missing --path-format argument
Calling "git rev-parse --path-format" without an argument segfaults
instead of giving an error message. Commit fac60b8925 (rev-parse: add
option for absolute or relative path formatting, 2020-12-13) added the
argument parsing code but forgot to handle NULL.
Returning an error makes sense here because there is no default value we
could use. Add a test case to verify.
Signed-off-by: Wolfgang Müller <wolf@oriole.systems>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-blobs.h')
0 files changed, 0 insertions, 0 deletions