diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -62,6 +62,13 @@ static int list_cmds(const char *spec) { struct string_list list = STRING_LIST_INIT_DUP; int i; + int nongit; + + /* + * Set up the repository so we can pick up any repo-level config (like + * completion.commands). + */ + setup_git_directory_gently(&nongit); while (*spec) { const char *sep = strchrnul(spec, ','); |