From: Junio C Hamano Date: Fri, 02 Aug 2013 23:13:22 GMT Subject: [PATCH v3 8/6] send-pack: fix parsing of --force-with-lease option Message-ID: <7va9kzptyl.fsf@alter.siamese.dyndns.org> In-Reply-To: <1374561800-938-1-git-send-email-gitster@pobox.com> 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 --- builtin/send-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/send-pack.c b/builtin/send-pack.c index 41dc512..4482f16 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; } -- 1.8.4-rc1-129-g1f3472b