Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 05:26:11 +0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-28 05:26:11 +0400
commitf49fb35d0d58271dc7c93c2752ced0d743fdf12e (patch)
treea377c08a9978292c5962788a1d6e5bf475795462
parent85c1f337be49eaa9a22e42a1c9958deef5ab57c3 (diff)
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.
-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;
}