Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (8 sloc) 245 Bytes
#!/bin/sh
mkdir /tmp/tmpgit.$$
GIT_DIR=/tmp/tmpgit.$$ git init
for pack in .git/objects/pack/*.pack; do
GIT_DIR=/tmp/tmpgit.$$ git unpack-objects < $pack
done
rsync -a --delete /tmp/tmpgit.$$/objects/ .git/objects/
rm -fr /tmp/tmpgit.$$