summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-03-14 22:10:27 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-14 22:10:27 -0400
commitbde47bb5b29aae57f1cc682192bd31d2d9b477e4 (patch)
tree276c4b33eebfebc0f177a49634f22416753eda23
parent15147d7d1937d77489466fedaf41210a4ba9e0a5 (diff)
commit the post-receive hook
-rwxr-xr-xbin/post-receive.githook8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/post-receive.githook b/bin/post-receive.githook
new file mode 100755
index 0000000..8292df0
--- /dev/null
+++ b/bin/post-receive.githook
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -e
+whoami
+export LANG=en_US.UTF-8
+
+unset GIT_DIR
+cd /srv/http/www.andrewdm.me
+git pull --ff-only