Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-08-03 03:06:29 +0400
committerJunio C Hamano <gitster@pobox.com>2013-08-03 03:07:45 +0400
commit77aa93481d1b12372a70959de58917ff815b3bc6 (patch)
tree5c8faed225c6bfd17622b00976c5bc8e791ed801 /builtin/send-pack.c
parente69fa70f486f437788feef71f8b83c286ae5e701 (diff)
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 <gitster@pobox.com>
Diffstat (limited to 'builtin/send-pack.c')
-rw-r--r--builtin/send-pack.c2
1 files changed, 1 insertions, 1 deletions
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;
}