summaryrefslogtreecommitdiff
path: root/git-prune.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-12-11 16:49:45 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2005-12-11 16:49:45 -0800
commita9572072f0ab0ac97e64b0dc01254a3ad95befe1 (patch)
tree2375e3b4aea11444375f9f587c8ca4cd8d22d6d0 /git-prune.sh
parentGIT 0.99.9l aka 1.0rc4 (diff)
parentt/t6022: a new test for renaming merge. (diff)
downloadtgif-a9572072f0ab0ac97e64b0dc01254a3ad95befe1.tar.xz
GIT 0.99.9m aka 1.0rc5
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-prune.sh')
-rwxr-xr-xgit-prune.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-prune.sh b/git-prune.sh
index 1fd8c731cd..7e7f0ad56d 100755
--- a/git-prune.sh
+++ b/git-prune.sh
@@ -16,7 +16,11 @@ do
done
sync
-git-fsck-objects --full --cache --unreachable "$@" |
+case "$#" in
+0) git-fsck-objects --full --cache --unreachable ;;
+*) git-fsck-objects --full --cache --unreachable $(git-rev-parse --all) "$@" ;;
+esac |
+
sed -ne '/unreachable /{
s/unreachable [^ ][^ ]* //
s|\(..\)|\1/|p