diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-22 00:15:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-22 00:15:24 +0200 |
commit | d845d727cb1935202b61a3b7b6c8cfa7c09bd204 (patch) | |
tree | 7296be39100177a980c2e3d5700371f11dd5b03d /t/helper/test-config.c | |
parent | Merge branch 'ew/http-do-not-forget-to-call-curl-multi-remove-handle' (diff) | |
parent | t1007: factor out repeated setup (diff) | |
download | git-d845d727cb1935202b61a3b7b6c8cfa7c09bd204.tar.xz git-d845d727cb1935202b61a3b7b6c8cfa7c09bd204.zip |
Merge branch 'jk/setup-sequence-update'
There were numerous corner cases in which the configuration files
are read and used or not read at all depending on the directory a
Git command was run, leading to inconsistent behaviour. The code
to set-up repository access at the beginning of a Git process has
been updated to fix them.
* jk/setup-sequence-update:
t1007: factor out repeated setup
init: reset cached config when entering new repo
init: expand comments explaining config trickery
config: only read .git/config from configured repos
test-config: setup git directory
t1302: use "git -C"
pager: handle early config
pager: use callbacks instead of configset
pager: make pager_program a file-local static
pager: stop loading git_default_config()
pager: remove obsolete comment
diff: always try to set up the repository
diff: handle --no-index prefixes consistently
diff: skip implicit no-index check when given --no-index
patch-id: use RUN_SETUP_GENTLY
hash-object: always try to set up the git repository
Diffstat (limited to 't/helper/test-config.c')
-rw-r--r-- | t/helper/test-config.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/helper/test-config.c b/t/helper/test-config.c index 3c6d08cd09..83a4f2ab86 100644 --- a/t/helper/test-config.c +++ b/t/helper/test-config.c @@ -72,6 +72,9 @@ int cmd_main(int argc, const char **argv) const char *v; const struct string_list *strptr; struct config_set cs; + + setup_git_directory(); + git_configset_init(&cs); if (argc < 2) { |