#!/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 --quiet
  git update-server-info
done