diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-04-27 02:44:08 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-28 10:47:42 -0700 |
commit | ce9baf234f04d2f1d183edbdc14e4ee9da46d895 (patch) | |
tree | ed079a7af9cddb5a14164abd88e4765e473c0be7 /t/helper/test-sha1-array.c | |
parent | Git 2.26.2 (diff) | |
download | tgif-ce9baf234f04d2f1d183edbdc14e4ee9da46d895.tar.xz |
push: unset PARSE_OPT_OPTARG for --recurse-submodules
When the usage for `git push` is shown, it includes the following
lines
--recurse-submodules[=(check|on-demand|no)]
control recursive pushing of submodules
which seem to indicate that the argument for --recurse-submodules is
optional. However, we cannot actually run that optiion without an
argument:
$ git push --recurse-submodules
fatal: recurse-submodules missing parameter
Unset PARSE_OPT_OPTARG so that it is clear that this option requires an
argument. Since the parse-options machinery guarantees that an argument
is present now, assume that `arg` is set in the else of
option_parse_recurse_submodules().
Reported-by: Andrew White <andrew.white@audinate.com>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-sha1-array.c')
0 files changed, 0 insertions, 0 deletions