| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
| Fri, 26 Nov 2010 15:32:34 +0000 (22:32 +0700) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Wed, 22 Dec 2010 22:34:24 +0000 (14:34 -0800) | ||
| commit | 337e51cedfdf1f98e1c151b72f06c7ca8bcea0fd | |
| tree | 356264b3e2ce5f3306f8dec995efc885cea4c4e0 | tree | snapshot |
| parent | dbdf5854b21852676de6a8baf052147217ce809b | commit | diff |
Use git_config_early() instead of git_config() during repo setup
When git_config() is called, either git_dir has already been set (by
$GIT_DIR env or set_git_dir()), or it will default git_dir to ".git".
git_config_early() gives setup functions more freedom because it does
not require git_dir. Give it a config path, it will happily examine
it.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When git_config() is called, either git_dir has already been set (by
$GIT_DIR env or set_git_dir()), or it will default git_dir to ".git".
git_config_early() gives setup functions more freedom because it does
not require git_dir. Give it a config path, it will happily examine
it.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| setup.c | diff | blob | history |