mirror of
https://github.com/git/git.git
synced 2024-11-18 19:53:58 +01:00
4feb7a016a
This avoids pruning the kernel v2.6.11 tree that now has a tag.
5 lines
178 B
Bash
Executable File
5 lines
178 B
Bash
Executable File
#!/bin/sh
|
|
REFS=$(cat .git/refs/*/*)
|
|
[ "$REFS" ] || exit 1
|
|
git-fsck-cache --unreachable $REFS | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs -r rm
|