Skip to content

Commit 77aa934

Browse files
committed
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 <[email protected]>
1 parent e69fa70 commit 77aa934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/send-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
183183
}
184184
if (!prefixcmp(arg, "--" CAS_OPT_NAME "=")) {
185185
if (parse_push_cas_option(&cas,
186-
strchr(arg, '=') + 1, 1) < 0)
186+
strchr(arg, '=') + 1, 0) < 0)
187187
exit(1);
188188
continue;
189189
}

0 commit comments

Comments
 (0)