mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
Revert replacing getenv() with get_git_dir()
This partially reverts commit
855f254b2b. All tests still
pass after this revert. The original commit seems unnecessary.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
This commit is contained in:
@@ -367,7 +367,9 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
|
||||
/*
|
||||
* Set up the default .git directory contents
|
||||
*/
|
||||
git_dir = get_git_dir();
|
||||
git_dir = getenv(GIT_DIR_ENVIRONMENT);
|
||||
if (!git_dir)
|
||||
git_dir = DEFAULT_GIT_DIR_ENVIRONMENT;
|
||||
safe_create_dir(git_dir, 0);
|
||||
|
||||
/* Check to see if the repository version is right.
|
||||
|
||||
Reference in New Issue
Block a user