diff options
author | Andrew Cady <d@jerkface.net> | 2019-07-17 01:28:20 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-07-17 02:09:53 -0400 |
commit | 9139c1e74f19832e070323af2afd673dd482e365 (patch) | |
tree | 9169b436edd2cbfe1500192ba6e88fc7e78f04ec | |
parent | 0bcab35657ac1250ccc4bff714f7f4db0c5eaed5 (diff) |
hello world
-rwxr-xr-x | hooks/master-updated | 0 | ||||
-rwxr-xr-x | hooks/post-receive | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/hooks/master-updated b/hooks/master-updated deleted file mode 100755 index e69de29..0000000 --- a/hooks/master-updated +++ /dev/null | |||
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 | ||