aboutsummaryrefslogtreecommitdiff
path: root/init-db.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 18:26:11 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 18:26:11 -0700
commitf49fb35d0d58271dc7c93c2752ced0d743fdf12e (patch)
treea377c08a9978292c5962788a1d6e5bf475795462 /init-db.c
parent85c1f337be49eaa9a22e42a1c9958deef5ab57c3 (diff)
downloadgit-f49fb35d0d58271dc7c93c2752ced0d743fdf12e.tar.gz
git-f49fb35d0d58271dc7c93c2752ced0d743fdf12e.tar.xz
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 1aa0d72d7..6990903bf 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;
}