#!/bin/sh set -x cd /git [ -e "$1" ] && echo "project $1 already exists" && exit 1 umask 2 GIT_DIR="$1" git init-db --shared chgrp -R $2 "$1" echo "$3" > "$1"/description touch "$1"/git-daemon-export-ok mv "$1"/hooks/update.sample "$1"/hooks/update chmod +x "$1"/hooks/update bin/set-up-post-receive-hooks.sh "$1"