mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
send-pack: fix parsing of --force-with-lease option
The last argument for parse_push_cas_option() is if it is "unset" (i.e. --no-force-with-lease), and we are parsing the option with an explicit value here, so it has to be 0. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e69fa70f48
commit
77aa93481d
|
@ -183,7 +183,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
|||
}
|
||||
if (!prefixcmp(arg, "--" CAS_OPT_NAME "=")) {
|
||||
if (parse_push_cas_option(&cas,
|
||||
strchr(arg, '=') + 1, 1) < 0)
|
||||
strchr(arg, '=') + 1, 0) < 0)
|
||||
exit(1);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue