summaryrefslogtreecommitdiff
path: root/pinyconfigs/etc/cron.weekly
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-11-21 12:18:32 -0800
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-11-21 12:18:32 -0800
commit2235d26983a8636a441aa8221f40cf916728e1c1 (patch)
treea0bb51302edd73e67c25a6a9984ccb8164a1052f /pinyconfigs/etc/cron.weekly
parent9fce5322437e55a6af3185d5c29454b7c70dd64a (diff)
downloadpiny-code-2235d26983a8636a441aa8221f40cf916728e1c1.tar.gz
piny-code-2235d26983a8636a441aa8221f40cf916728e1c1.zip
cron: establish ownership of packed-refs
Diffstat (limited to 'pinyconfigs/etc/cron.weekly')
-rwxr-xr-xpinyconfigs/etc/cron.weekly/piny1
1 files changed, 1 insertions, 0 deletions
diff --git a/pinyconfigs/etc/cron.weekly/piny b/pinyconfigs/etc/cron.weekly/piny
index 59fda8f..0a9195b 100755
--- a/pinyconfigs/etc/cron.weekly/piny
+++ b/pinyconfigs/etc/cron.weekly/piny
@@ -5,4 +5,5 @@ 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