diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-12-01 12:47:04 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-12-01 12:47:04 -0800 |
| commit | 32ef08f4e5ab6ce8f3b47201f1df46d1a33deb80 (patch) | |
| tree | 12a4265c7ef9c801e5ec882fe8a807c86173d3a5 /builtin-help.c | |
| parent | 36a83f375bc247a09f46de0445a138d5e6de8a4f (diff) | |
| parent | af6fbf9f814b3ee23b4b6d632131095c0278ae44 (diff) | |
| download | git-32ef08f4e5ab6ce8f3b47201f1df46d1a33deb80.tar.xz | |
Merge branch 'maint'
* maint:
help: Do not unnecessarily look for a repository
Documentation: Fix a few i.e./e.g. mix-ups
Documentation: Document --branch option in git clone synopsis
Diffstat (limited to 'builtin-help.c')
| -rw-r--r-- | builtin-help.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin-help.c b/builtin-help.c index ca08519d9d..09ad4b04f9 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -427,9 +427,6 @@ int cmd_help(int argc, const char **argv, const char *prefix) return 0; } - setup_git_directory_gently(&nongit); - git_config(git_help_config, NULL); - if (!argv[0]) { printf("usage: %s\n\n", git_usage_string); list_common_cmds_help(); @@ -437,6 +434,9 @@ int cmd_help(int argc, const char **argv, const char *prefix) return 0; } + setup_git_directory_gently(&nongit); + git_config(git_help_config, NULL); + alias = alias_lookup(argv[0]); if (alias && !is_git_command(argv[0])) { printf("`git %s' is aliased to `%s'\n", argv[0], alias); |
