#!/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