Skip to content

Commit

Permalink
send-pack: fix parsing of --force-with-lease option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Aug 2, 2013
1 parent e69fa70 commit 77aa934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 77aa934

Please sign in to comment.