From: Nguyễn Thái Ngọc Duy Date: Sat, 3 Mar 2018 11:35:55 +0000 (+0700) Subject: repository.c: move env-related setup code back to environment.c X-Git-Tag: v2.18.0-rc0~158^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/357a03ebe9e04329705a46ff36d526c5ab0c3ebc?hp=357a03ebe9e04329705a46ff36d526c5ab0c3ebc repository.c: move env-related setup code back to environment.c It does not make sense that generic repository code contains handling of environment variables, which are specific for the main repository only. Refactor repo_set_gitdir() function to take $GIT_DIR and optionally _all_ other customizable paths. These optional paths can be NULL and will be calculated according to the default directory layout. Note that some dead functions are left behind to reduce diff noise. They will be deleted in the next patch. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---