提交 77aa9348 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <gitster@pobox.com>
上级 e69fa70f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册