X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.weekly;fp=config%2Fdebian%2Fcron.weekly;h=53d951cdc0f54a911435ea316876fccab5126dee;hb=2bb16aa77f112def9c87ade768434d02940da9e2;hp=99d16359365f196ce82c3325b3f46bbd8d987425;hpb=3384a6a628020a85f8518d0476ef1aab9b7103b1;p=dak.git diff --git a/config/debian/cron.weekly b/config/debian/cron.weekly index 99d16359..53d951cd 100755 --- a/config/debian/cron.weekly +++ b/config/debian/cron.weekly @@ -34,6 +34,12 @@ dak split-done > /dev/null # Vacuum the database echo "VACUUM; VACUUM ANALYZE;" | psql --no-psqlrc projectb 2>&1 | grep -v "^NOTICE: Skipping.*only table owner can VACUUM it$" +# Do git cleanup stuff +echo "Doing git stuff" +cd /org/ftp.debian.org/git/dak.git +git gc --prune +git update-server-info + # Clean up apt-ftparchive's databases cd $configdir echo "Cleanup apt-ftparchive's database"