Commits

Linus Torvalds  committed b0966e1

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.

  • Participants
  • Parent commits 2f2de9b

Comments (0)

Files changed (1)

File git-prune-script

     shift;
 done
 
-git-fsck-cache --cache --unreachable "$@" |
+git-fsck-cache --full --cache --unreachable "$@" |
 sed -ne '/unreachable /{
     s/unreachable [^ ][^ ]* //
     s|\(..\)|\1/|p