blob: 346c6dfe9fbb6228a967305249d5b03951e1125e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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"
|