Retire support for old environment variables.
We have deprecated the old environment variable names for quite a while and now it's time to remove them. Gone are: SHA1_FILE_DIRECTORIES AUTHOR_DATE AUTHOR_EMAIL AUTHOR_NAME COMMIT_AUTHOR_EMAIL COMMIT_AUTHOR_NAME SHA1_FILE_DIRECTORY Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -392,7 +392,7 @@ static int fsck_head_link(void)
|
||||
static char path[PATH_MAX], link[PATH_MAX];
|
||||
const char *git_dir;
|
||||
|
||||
git_dir = gitenv(GIT_DIR_ENVIRONMENT);
|
||||
git_dir = getenv(GIT_DIR_ENVIRONMENT);
|
||||
if (!git_dir) git_dir = DEFAULT_GIT_DIR_ENVIRONMENT;
|
||||
|
||||
snprintf(path, sizeof(path), "%s/HEAD", git_dir);
|
||||
|
Reference in New Issue
Block a user