The elusive post-receive example that I so often need
all automatic
1 file changed, +2 -1
+2-1startproject.sh
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | 2 | |
| 3 | -$project=$HOME/$1 | |
| 3 | +project=$HOME/$1 | |
| 4 | 4 | |
| 5 | 5 | git init --bare $project |
| 6 | 6 | cp post-receive $project/hooks/post-receive |
| 7 | +sed -i 's/PROJECT_NAME/'$1'/' $project/hooks/post-receive | |
| 7 | 8 | chmod +x $project/hooks/post-receive |