aboutsummaryrefslogtreecommitdiff
path: root/git-prune-script
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 08:57:14 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-14 08:57:14 -0700
commitb0966e1010547095ea6fe546dcbbe23a03b62841 (patch)
tree67866251b6e48a3dc17aca637eebd4eb60f488b2 /git-prune-script
parent2f2de9b4cdc86fef4465925ae7d5b2dcce8ffc8c (diff)
downloadgit-b0966e1010547095ea6fe546dcbbe23a03b62841.tar.gz
git-b0966e1010547095ea6fe546dcbbe23a03b62841.tar.xz
Make "git prune" use the "--full" flag to git-fsck-cache
It's too dangerous not to. We need to follow alternate object directories etc, or we might say something is unreachable just because we didn't look it up completely.
Diffstat (limited to 'git-prune-script')
-rwxr-xr-xgit-prune-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prune-script b/git-prune-script
index 97646685b..2c678f26a 100755
--- a/git-prune-script
+++ b/git-prune-script
@@ -14,7 +14,7 @@ do
shift;
done
-git-fsck-cache --cache --unreachable "$@" |
+git-fsck-cache --full --cache --unreachable "$@" |
sed -ne '/unreachable /{
s/unreachable [^ ][^ ]* //
s|\(..\)|\1/|p