diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-09 14:48:54 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-09 14:48:54 -0700 |
commit | a9ab586a5db015d200dfdadcf5876d62f15dd36c (patch) | |
tree | 7631ead8e5869cad95d4e4c8e33415508335b7a5 /setup.c | |
parent | 44ec46a9dff34d0d0d207741094b3a8ebd0e5324 (diff) | |
download | git-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 'setup.c')
-rw-r--r-- | setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,7 +87,7 @@ static int is_toplevel_directory(void) return !lstat(".git/HEAD", &st) && S_ISLNK(st.st_mode) && !access(".git/refs/", X_OK) && - (gitenv(DB_ENVIRONMENT) || !access(".git/objects/", X_OK)); + (getenv(DB_ENVIRONMENT) || !access(".git/objects/", X_OK)); } const char *setup_git_directory(void) @@ -99,7 +99,7 @@ const char *setup_git_directory(void) * If GIT_DIR is set explicitly, we're not going * to do any discovery */ - if (gitenv(GIT_DIR_ENVIRONMENT)) + if (getenv(GIT_DIR_ENVIRONMENT)) return NULL; if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/') |