From: Junio C Hamano Date: Fri, 2 Aug 2013 23:06:29 +0000 (-0700) Subject: send-pack: fix parsing of --force-with-lease option X-Git-Tag: v1.8.5-rc0~171^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/77aa93481d1b12372a70959de58917ff815b3bc6 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 --- diff --git a/builtin/send-pack.c b/builtin/send-pack.c index 41dc51221c..4482f16efb 100644 --- a/builtin/send-pack.c +++ b/builtin/send-pack.c @@ -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; }