5 echo "id-new-project.sh srcdir description {pub/private}"
7 echo "id-new-project.sh ../myproj \"Which does good things\" private"
15 if test -z "${TYPE}"; then
19 if test ! -e post-receive; then
20 echo "file post-receive must be in the current directory"
26 if test -d ${PROJ}.git; then
27 echo "${PROJ}.git already exists"
32 if git clone --bare $SRC ${PROJ}.git; then
34 touch git-daemon-export-ok
35 echo "${DESC}" >description
36 git config core.sharedRepository true
37 git config core.ignorecase true
38 cp ../post-receive hooks/post-receive
39 chmod +x hooks/post-receive
40 git config hooks.mailinglist gitid@indexdata.dk
42 scp -r ${PROJ}.git git.indexdata.com:/home/git/${TYPE}
43 ssh git.indexdata.com "cd /home/git/${TYPE}/${PROJ}.git && chmod -R g+w . && chgrp -R git . && find . -type d | xargs chmod g+s"