summaryrefslogtreecommitdiff
path: root/builtin/push.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-11 21:56:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-11 21:56:59 (GMT)
commit2de0f39cd27d8ab8eae2e3430b81294f26252693 (patch)
treecf9fc811487dc0c43ceb4cdd6a9f5a330054c8e6 /builtin/push.c
parentbb80ee09974667a1db6bbc5e33574ed869b76a88 (diff)
parentf7c815c3eede201def87a643fdcad09a9af3e3e7 (diff)
downloadgit-2de0f39cd27d8ab8eae2e3430b81294f26252693.zip
git-2de0f39cd27d8ab8eae2e3430b81294f26252693.tar.gz
git-2de0f39cd27d8ab8eae2e3430b81294f26252693.tar.bz2
Merge branch 'nd/push-no-thin'
"git push --no-thin" was a no-op by mistake. * nd/push-no-thin: push: respect --no-thin
Diffstat (limited to 'builtin/push.c')
-rw-r--r--builtin/push.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/push.c b/builtin/push.c
index 50bbfd6..7b1b66c 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -15,7 +15,7 @@ static const char * const push_usage[] = {
NULL,
};
-static int thin;
+static int thin = 1;
static int deleterefs;
static const char *receivepack;
static int verbosity;
@@ -315,8 +315,7 @@ static int push_with_options(struct transport *transport, int flags)
if (receivepack)
transport_set_option(transport,
TRANS_OPT_RECEIVEPACK, receivepack);
- if (thin)
- transport_set_option(transport, TRANS_OPT_THIN, "yes");
+ transport_set_option(transport, TRANS_OPT_THIN, thin ? "yes" : NULL);
if (!is_empty_cas(&cas)) {
if (!transport->smart_options)