aboutsummaryrefslogtreecommitdiff
path: root/init-db.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-10-09 02:30:17 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-28 02:01:42 -0700
commit9106c097ad87577019544f45fda11c4d73986597 (patch)
tree2c5d370f099ef78342624e224f9aa4a8b5c68dcd /init-db.c
parentc1aaa5d9ea4a148a964f8c4d6de8bc65f1dc44fd (diff)
downloadgit-9106c097ad87577019544f45fda11c4d73986597.tar.gz
git-9106c097ad87577019544f45fda11c4d73986597.tar.xz
Create object subdirectories on demand (phase II)
This removes the unoptimization. The previous round does not mind missing fan-out directories, but still makes sure they exist, lest older versions choke on a repository created/packed by it. This round does not play that nicely anymore -- empty fan-out directories are not created by init-db, and will stay removed by prune-packed. The prune command also removes empty fan-out directories. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'init-db.c')
-rw-r--r--init-db.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/init-db.c b/init-db.c
index 2a4aa3c19..ca6fa4d42 100644
--- a/init-db.c
+++ b/init-db.c
@@ -281,10 +281,6 @@ int main(int argc, char **argv)
memcpy(path, sha1_dir, len);
safe_create_dir(sha1_dir);
- for (i = 0; i < 256; i++) {
- sprintf(path+len, "/%02x", i);
- safe_create_dir(path);
- }
strcpy(path+len, "/pack");
safe_create_dir(path);
strcpy(path+len, "/info");