diff options
Diffstat (limited to 'pinyconfigs/etc/cron.weekly')
-rwxr-xr-x | pinyconfigs/etc/cron.weekly/piny | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pinyconfigs/etc/cron.weekly/piny b/pinyconfigs/etc/cron.weekly/piny new file mode 100755 index 0000000..3719879 --- /dev/null +++ b/pinyconfigs/etc/cron.weekly/piny @@ -0,0 +1,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 |