irongit

The elusive post-receive example that I so often need

all automatic

huncholanehuncholaneauthored committed by GitHub
parent c206981commit 562b929d5f5f4d2f94bb9ba10eda2a30468ad184Browse files

1 file changed, +2 -1

+2-1startproject.sh
@@ -1,7 +1,8 @@
11 #!/bin/bash
22
3-$project=$HOME/$1
3+project=$HOME/$1
44
55 git init --bare $project
66 cp post-receive $project/hooks/post-receive
7+sed -i 's/PROJECT_NAME/'$1'/' $project/hooks/post-receive
78 chmod +x $project/hooks/post-receive