also prune tags

This commit is contained in:
Eric Berberich 2011-09-23 09:26:57 +00:00
parent 4f71e0da4c
commit b44bbf10bd
1 changed files with 8 additions and 1 deletions

View File

@ -53,7 +53,14 @@ do
fi
done
# TODO to the same for tags
git for-each-ref refs/tags | cut -d / -f 3- | while read ref
do
svn ls "$SVN/tags/$ref" --depth empty
error=$?
if [ $error -ne 0 ]; then
git tag -d $ref
fi
done
echo "#Compact repository"
git gc --auto --prune=now