summaryrefslogtreecommitdiffstats
path: root/init-db.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 03:26:11 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 03:26:11 +0200
commitf49fb35d0d58271dc7c93c2752ced0d743fdf12e (patch)
treea377c08a9978292c5962788a1d6e5bf475795462 /init-db.c
parentMerge rsync://rsync.kernel.org/pub/scm/gitk/gitk (diff)
downloadgit-f49fb35d0d58271dc7c93c2752ced0d743fdf12e.tar.xz
git-f49fb35d0d58271dc7c93c2752ced0d743fdf12e.zip
git-init-db: create "pack" subdirectory under objects
Don't make the user have to mkdir it just because he's excited about the new object pack functionality, do it for him.
Diffstat (limited to 'init-db.c')
-rw-r--r--init-db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init-db.c b/init-db.c
index 1aa0d72d7e..6990903bf7 100644
--- 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;
}