summaryrefslogtreecommitdiff
path: root/fsck-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-09 14:48:54 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-09 14:48:54 -0700
commita9ab586a5db015d200dfdadcf5876d62f15dd36c (patch)
tree7631ead8e5869cad95d4e4c8e33415508335b7a5 /fsck-objects.c
parent44ec46a9dff34d0d0d207741094b3a8ebd0e5324 (diff)
downloadgit-a9ab586a5db015d200dfdadcf5876d62f15dd36c.tar.gz
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>
Diffstat (limited to 'fsck-objects.c')
-rw-r--r--fsck-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck-objects.c b/fsck-objects.c
index 43d188a139..0c5c430ed1 100644
--- a/fsck-objects.c
+++ b/fsck-objects.c
@@ -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);