summaryrefslogtreecommitdiff
path: root/Documentation/git-commit.txt
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-03-09 19:00:30 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-10 22:31:29 -0700
commit7059cd99fc671f9594b61cee7d10d69704f3ebe2 (patch)
tree1e9126e7c2d11afe582029265475483b44ff5e5c /Documentation/git-commit.txt
parenthttp.c: style cleanups (diff)
downloadtgif-7059cd99fc671f9594b61cee7d10d69704f3ebe2.tar.xz
http_init(): Fix config file parsing
We honor the command line options, environment variables, variables in repository configuration file, variables in user's global configuration file, variables in the system configuration file, and then finally use built-in default. To implement this semantics, the code should: - start from built-in default values; - call git_config() with the configuration parser callback, which implements "later definition overrides earlier ones" logic (git_config() reads the system's, user's and then repository's configuration file in this order); - override the result from the above with environment variables if set; - override the result from the above with command line options. The initialization code http_init() for http transfer got this wrong, and implemented a "first one wins, ignoring the later ones" in http_options(), to compensate this mistake, read environment variables before calling git_config(). This is all wrong. As a second class citizen, the http codepath hasn't been audited as closely as other parts of the system, but we should try to bring sanity to it, before inviting contributors to improve on it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-commit.txt')
0 files changed, 0 insertions, 0 deletions