summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/cron.weekly/piny
blob: 59fda8f6ac0b2e4801dc8e27d08d9ff486188fa1 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

export GIT_DIR

for GIT_DIR in `find /srv/git/ -mindepth 1 -type d -name '*.git' -print -prune`; do
  git gc --aggressive --auto --quiet
  git pack-refs --all
done