#!/bin/sh if test -z "$1" then echo "Veuillez indiquer le nom du depot" else cd ~/www/git mkdir ~/www/git/$1 cd ~/www/git/$1 touch .gitignore git init git add . git commit -an -m "initialisation du depot" git clone --bare . ~/depot/$1.git cd ~/depot/$1.git git --bare update-server-info cd hooks/ mv post-update.sample post-update chmod a+x post-update rm -Rf ~/www/git/$1 cd ~/www/git git clone ~/depot/$1.git fi