#!/bin/sh # # An example hook script to prepare a packed repository for use over # dumb transports. # # To enable this hook, make this file executable by "chmod +x post-update". git-repack -a -d git-update-server-info RET=$? for i in $(find $GIT_DIR -type d); do wwwonly $i done find $GIT_DIR -type f | xargs chmod a+r exit $RET