diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-07-18 11:27:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-18 12:19:53 -0700 |
commit | e12cb98e1e083c23a03fcfabb3a3c6a5a22ce3c5 (patch) | |
tree | b64357d7ccd2c6d91dc709a74795898e9e82b086 /commit.c | |
parent | fb7d80edcae482f4fa5d4be0227dc3054734e5f3 (diff) |
branch: reject "--no-all" and "--no-remotes" early
As the command line parser for "git branch --all" forgets to use
PARSE_OPT_NONEG, it accepted "git branch --no-all", and then passed
a nonsense value to the underlying machinery, leading to a fatal
error "filter_refs: invalid type". The "--remotes" option had
exactly the same issue.
Catch the unsupported options early in the option parser.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions