6 # make sure we have repository to create
8 echo "Usage: $0 repository"
17 if [ -d "$GITROOT/$repo" ]; then
18 echo "Warning: $GITROOT/$repo already exists"
21 mkdir "$GITROOT/$repo"
23 pushd "$GITROOT/$repo" > /dev
/null
24 # Init bare repository
25 git
--bare init
--shared --initial-branch=master .
> /dev
/null
27 git update
-server-info
29 git config http.receivepack true
31 chown
-R apache
:apache .