summaryrefslogtreecommitdiff
path: root/git-prune.sh
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 /git-prune.sh
parentc1aaa5d9ea4a148a964f8c4d6de8bc65f1dc44fd (diff)
downloadgit-9106c097ad87577019544f45fda11c4d73986597.tar.gz
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 'git-prune.sh')
-rwxr-xr-xgit-prune.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-prune.sh b/git-prune.sh
index 9657dbf271..b28630cacf 100755
--- a/git-prune.sh
+++ b/git-prune.sh
@@ -22,6 +22,7 @@ sed -ne '/unreachable /{
}' | {
cd "$GIT_OBJECT_DIRECTORY" || exit
xargs $echo rm -f
+ rmdir 2>/dev/null [0-9a-f][0-9a-f]
}
git-prune-packed $dryrun