#!/bin/sh # Update "agefile" for cgit # The default location is /info/web/last-modified agefile="$(git rev-parse --git-dir)/info/web/last-modified" mkdir -p "$(dirname "$agefile")" git for-each-ref > "$agefile" \ --sort=-authordate --count=1 \ --format='%(authordate:iso8601)' # Prepare a packed repository for use over dumb transports git update-server-info