#!/bin/sh
set -x

# Update repo description
(
git show HEAD:README >"$GIT_DIR"/description \
|| git show HEAD:README.md >"$GIT_DIR"/description \
|| git show HEAD:README.txt >"$GIT_DIR"/description \
# END
) 2>/dev/null

git update-server-info
chmod -R go+rX "$GIT_DIR"
