diff options
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-x | hooks/post-receive | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100755 index 0000000..4e85b42 --- /dev/null +++ b/hooks/post-receive | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | if ! [ "$DID_SELF_UPDATE" ] | ||
3 | then | ||
4 | GIT_WORK_TREE=. git checkout -f master -- hooks/post-receive | ||
5 | DID_SELF_UPDATE=y exec hooks/post-receive | ||
6 | fi | ||
7 | |||
8 | echo 'Hello, world!' >&2 | ||