summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/cron.weekly/piny
blob: 0a9195bcb8f300d5a053f51a9cd1e4fdf74e2845 (plain)
1
2
3
4
5
6
7
8
9
#!/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
  chown --reference="$GIT_DIR"/objects "$GIT_DIR"/packed-refs
done