Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http-fetch: do not use curl_message after releasing it
[gitweb.git]
/
git-prune.sh
diff --git
a/git-prune.sh
b/git-prune.sh
index 9657dbf2711e40bfe035a22ec211811c88c89e8e..ef31bd2a6824104ba401bffbe41ecd50a81780e9 100755
(executable)
--- a/
git-prune.sh
+++ b/
git-prune.sh
@@
-15,6
+15,7
@@
do
shift;
done
+sync
git-fsck-objects --full --cache --unreachable "$@" |
sed -ne '/unreachable /{
s/unreachable [^ ][^ ]* //
@@
-22,6
+23,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