|
|
@ -18,6 +18,7 @@ static int thin; |
|
|
|
static int deleterefs; |
|
|
|
static int deleterefs; |
|
|
|
static const char *receivepack; |
|
|
|
static const char *receivepack; |
|
|
|
static int verbosity; |
|
|
|
static int verbosity; |
|
|
|
|
|
|
|
static int progress; |
|
|
|
|
|
|
|
|
|
|
|
static const char **refspec; |
|
|
|
static const char **refspec; |
|
|
|
static int refspec_nr; |
|
|
|
static int refspec_nr; |
|
|
@ -107,7 +108,7 @@ static int push_with_options(struct transport *transport, int flags) |
|
|
|
int err; |
|
|
|
int err; |
|
|
|
int nonfastforward; |
|
|
|
int nonfastforward; |
|
|
|
|
|
|
|
|
|
|
|
transport_set_verbosity(transport, verbosity, 0); |
|
|
|
transport_set_verbosity(transport, verbosity, progress); |
|
|
|
|
|
|
|
|
|
|
|
if (receivepack) |
|
|
|
if (receivepack) |
|
|
|
transport_set_option(transport, |
|
|
|
transport_set_option(transport, |
|
|
@ -223,6 +224,7 @@ int cmd_push(int argc, const char **argv, const char *prefix) |
|
|
|
OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive pack program"), |
|
|
|
OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive pack program"), |
|
|
|
OPT_BIT('u', "set-upstream", &flags, "set upstream for git pull/status", |
|
|
|
OPT_BIT('u', "set-upstream", &flags, "set upstream for git pull/status", |
|
|
|
TRANSPORT_PUSH_SET_UPSTREAM), |
|
|
|
TRANSPORT_PUSH_SET_UPSTREAM), |
|
|
|
|
|
|
|
OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"), |
|
|
|
OPT_END() |
|
|
|
OPT_END() |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|