diff options
author | Linus Torvalds <torvalds@osdl.org> | 2005-10-09 02:30:17 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-28 02:01:42 -0700 |
commit | 9106c097ad87577019544f45fda11c4d73986597 (patch) | |
tree | 2c5d370f099ef78342624e224f9aa4a8b5c68dcd /init-db.c | |
parent | Merge branch 'js-fat' (diff) | |
download | tgif-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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"); |