projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix git-init-db creating crap directories.
[git.git]
/
setup.c
diff --git
a/setup.c
b/setup.c
index
258da17
..
3973668
100644
(file)
--- a/
setup.c
+++ b/
setup.c
@@
-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) &&
return !lstat(".git/HEAD", &st) &&
S_ISLNK(st.st_mode) &&
!access(".git/refs/", X_OK) &&
- (g
i
tenv(DB_ENVIRONMENT) || !access(".git/objects/", X_OK));
+ (g
e
tenv(DB_ENVIRONMENT) || !access(".git/objects/", X_OK));
}
const char *setup_git_directory(void)
}
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 GIT_DIR is set explicitly, we're not going
* to do any discovery
*/
- if (g
i
tenv(GIT_DIR_ENVIRONMENT))
+ if (g
e
tenv(GIT_DIR_ENVIRONMENT))
return NULL;
if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/')
return NULL;
if (!getcwd(cwd, sizeof(cwd)) || cwd[0] != '/')