#!/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-update-server-info # find current repo's utilities, resolve current path and update refs. [ -z "${GIT_DIR##/*}" ] || GIT_DIR="${PWD}/${GIT_DIR}" REPO="${GIT_DIR%%/git/dist/*}" GIT_DIR=$("$REPO/git/bin/resolve-path" "$GIT_DIR") REPO="${GIT_DIR%%/git/dist/*}" DIR="${GIT_DIR#$REPO/git/dist/}" PKG="${DIR%.git}" cd "$REPO/git/dist" echo "$PKG" | ../bin/list-all-refs -u -o refs.lst exit 0