Be much more liberal about the file mode bits.
[gitweb.git] / init-db.c
index bbb3ad98e0fe5739f8ae8a8d2c10352dc1281461..ff2b11a3b33ecba970f59bef3ba63dcc29b53855 100644 (file)
--- a/init-db.c
+++ b/init-db.c
@@ -10,8 +10,8 @@ int main(int argc, char **argv)
        char *sha1_dir = getenv(DB_ENVIRONMENT), *path;
        int len, i;
 
-       if (mkdir(".dircache", 0755) < 0) {
-               perror("unable to create .dircache");
+       if (mkdir(".git", 0755) < 0) {
+               perror("unable to create .git directory");
                exit(1);
        }
 
@@ -30,7 +30,7 @@ int main(int argc, char **argv)
        }
 
        /*
-        * The default case is to have a DB per managed directory. 
+        * The default case is to have a DB per managed directory.
         */
        sha1_dir = DEFAULT_DB_ENVIRONMENT;
        fprintf(stderr, "defaulting to private storage area\n");