Merge branch 'nd/push-no-thin'

"git push --no-thin" was a no-op by mistake.

* nd/push-no-thin:
  push: respect --no-thin
This commit is contained in:
Junio C Hamano
2013-09-11 14:56:58 -07:00
3 changed files with 26 additions and 4 deletions

View File

@ -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)