projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve "git grep" flags handling
[git.git]
/
init-db.c
diff --git
a/init-db.c
b/init-db.c
index
1fb3f7f
..
902bdfa
100644
(file)
--- a/
init-db.c
+++ b/
init-db.c
@@
-226,7
+226,7
@@
int main(int argc, char **argv)
/*
* Set up the default .git directory contents
*/
/*
* Set up the default .git directory contents
*/
- git_dir = g
i
tenv(GIT_DIR_ENVIRONMENT);
+ git_dir = g
e
tenv(GIT_DIR_ENVIRONMENT);
if (!git_dir) {
git_dir = DEFAULT_GIT_DIR_ENVIRONMENT;
fprintf(stderr, "defaulting to local storage area\n");
if (!git_dir) {
git_dir = DEFAULT_GIT_DIR_ENVIRONMENT;
fprintf(stderr, "defaulting to local storage area\n");
@@
-249,5
+249,7
@@
int main(int argc, char **argv)
}
strcpy(path+len, "/pack");
safe_create_dir(path);
}
strcpy(path+len, "/pack");
safe_create_dir(path);
+ strcpy(path+len, "/info");
+ safe_create_dir(path);
return 0;
}
return 0;
}