index 258da176150081749a2ca2faeebc316911f0fba1..3973668f017e209e714950f4175d26f8a409cce3 100644 (file)
--- a/setup.c
+++ b/setup.c
return !lstat(".git/HEAD", &st) &&
S_ISLNK(st.st_mode) &&
!access(".git/refs/", X_OK) &&
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)
}
const char *setup_git_directory(void)
* If GIT_DIR is set explicitly, we're not going
* to do any discovery
*/
* 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] != '/')
return NULL;
if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/')