From: Junio C Hamano Date: Mon, 16 Nov 2009 07:07:17 +0000 (-0800) Subject: Merge branch 'jk/maint-push-config' into maint X-Git-Tag: v1.6.5.3~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8d324bf89057a28fda08cc4c8d37ce98a79cf9be?hp=-c Merge branch 'jk/maint-push-config' into maint * jk/maint-push-config: push: always load default config --- 8d324bf89057a28fda08cc4c8d37ce98a79cf9be diff --combined builtin-push.c index 8631c06ed6,8a19f10354..752121f247 --- a/builtin-push.c +++ b/builtin-push.c @@@ -10,7 -10,7 +10,7 @@@ #include "parse-options.h" static const char * const push_usage[] = { - "git push [--all | --mirror] [-n | --dry-run] [--porcelain] [--tags] [--receive-pack=] [--repo=] [-f | --force] [-v] [ ...]", + "git push [] [ ...]", NULL, }; @@@ -66,7 -66,6 +66,6 @@@ static void setup_push_tracking(void static void setup_default_push_refspecs(void) { - git_config(git_default_config, NULL); switch (push_default) { default: case PUSH_DEFAULT_MATCHING: @@@ -173,7 -172,6 +172,6 @@@ int cmd_push(int argc, const char **arg int tags = 0; int rc; const char *repo = NULL; /* default repository */ - struct option options[] = { OPT_BIT('q', "quiet", &flags, "be quiet", TRANSPORT_PUSH_QUIET), OPT_BIT('v', "verbose", &flags, "be verbose", TRANSPORT_PUSH_VERBOSE), @@@ -181,7 -179,7 +179,7 @@@ OPT_BIT( 0 , "all", &flags, "push all refs", TRANSPORT_PUSH_ALL), OPT_BIT( 0 , "mirror", &flags, "mirror all refs", (TRANSPORT_PUSH_MIRROR|TRANSPORT_PUSH_FORCE)), - OPT_BOOLEAN( 0 , "tags", &tags, "push tags"), + OPT_BOOLEAN( 0 , "tags", &tags, "push tags (can't be used with --all or --mirror)"), OPT_BIT('n' , "dry-run", &flags, "dry run", TRANSPORT_PUSH_DRY_RUN), OPT_BIT( 0, "porcelain", &flags, "machine-readable output", TRANSPORT_PUSH_PORCELAIN), OPT_BIT('f', "force", &flags, "force updates", TRANSPORT_PUSH_FORCE), @@@ -191,6 -189,7 +189,7 @@@ OPT_END() }; + git_config(git_default_config, NULL); argc = parse_options(argc, argv, prefix, options, push_usage, 0); if (tags)