git-init-db: create "pack" subdirectory under objects
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 01:26:11 +0000 (18:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 01:26:11 +0000 (18:26 -0700)
Don't make the user have to mkdir it just because he's excited about the
new object pack functionality, do it for him.

init-db.c

index 1aa0d72d7ea882331f22aac5add5482d980ff9d3..6990903bf75ef3cb4764166f2537fd64c4d07f18 100644 (file)
--- a/init-db.c
+++ b/init-db.c
@@ -87,5 +87,7 @@ int main(int argc, char **argv)
                sprintf(path+len, "/%02x", i);
                safe_create_dir(path);
        }
+       strcpy(path+len, "/pack");
+       safe_create_dir(path);
        return 0;
 }