summaryrefslogtreecommitdiff
path: root/etc/cron.daily/piny
blob: 54b20b2d0ce97e9cf3cffe003b2429d73676262d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

export GIT_DIR

for GIT_DIR in $(find /srv/git/ -maxdepth 1 -mindepth 1 -type d -name '*.git'); do
  echo $GIT_DIR
  git gc --aggressive --auto
  git update-server-info
done