irongit

The elusive post-receive example that I so often need

post-receive/startproject.sh
8 lines196 BBourne Again Shell (bash)
1#!/bin/bash
2
3project=$HOME/$1
4
5git init --bare $project
6cp post-receive $project/hooks/post-receive
7sed -i 's/PROJECT_NAME/'$1'/' $project/hooks/post-receive
8chmod +x $project/hooks/post-receive