#!/bin/sh if test -z "$NO_PRUNE" then git prune fi set -u git pack-refs --all git gc --auto --quiet mkdir -p $GIT_DIR/info/web git log -1 --pretty=format:%ci > $GIT_DIR/info/web/last-modified+ mv $GIT_DIR/info/web/last-modified+ $GIT_DIR/info/web/last-modified project=`basename $GIT_DIR` if test -d ~/repositories/git.bogomips.org/cgit/$project/snapshot then GIT_DIR=$GIT_DIR ~/src/gen-tarball.sh fi # flush memcached echo flush_all | socat - TCP4:0:11211 >/dev/null 2>&1 exec git update-server-info