files-backend: delete dead code in files_init_db()
[gitweb.git] / refs / files-backend.c
index caeb8188fd8f9c05d76f5adba242f77e65f68aef..9a9dc4e50c30f5f18a9756093445ffeab120217a 100644 (file)
@@ -4107,10 +4107,6 @@ static int files_init_db(struct ref_store *ref_store, struct strbuf *err)
         */
        safe_create_dir(git_path("refs/heads"), 1);
        safe_create_dir(git_path("refs/tags"), 1);
-       if (get_shared_repository()) {
-               adjust_shared_perm(git_path("refs/heads"));
-               adjust_shared_perm(git_path("refs/tags"));
-       }
        return 0;
 }