t9107-git-svn-migrate.sh: use the $( ... ) construct for command substitution
[gitweb.git] / builtin / init-db.c
index f59f40768e90cae98cf6541f4c383d762b68b9d1..07229d60f1fd0d581c8cfae2bd0b1c21f06cbc95 100644 (file)
@@ -24,18 +24,6 @@ static int init_shared_repository = -1;
 static const char *init_db_template_dir;
 static const char *git_link;
 
-static void safe_create_dir(const char *dir, int share)
-{
-       if (mkdir(dir, 0777) < 0) {
-               if (errno != EEXIST) {
-                       perror(dir);
-                       exit(1);
-               }
-       }
-       else if (share && adjust_shared_perm(dir))
-               die(_("Could not make %s writable by group"), dir);
-}
-
 static void copy_templates_1(struct strbuf *path, struct strbuf *template,
                             DIR *dir)
 {