diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-11 16:49:45 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-11 16:49:45 -0800 |
commit | a9572072f0ab0ac97e64b0dc01254a3ad95befe1 (patch) | |
tree | 2375e3b4aea11444375f9f587c8ca4cd8d22d6d0 /git-prune.sh | |
parent | GIT 0.99.9l aka 1.0rc4 (diff) | |
parent | t/t6022: a new test for renaming merge. (diff) | |
download | tgif-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-x | git-prune.sh | 6 |
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 |