summaryrefslogtreecommitdiff
path: root/post-update
diff options
context:
space:
mode:
authorGravatar steering72532026-05-18 09:25:02 -0600
committerGravatar steering72532026-05-18 09:25:02 -0600
commita0140beadfffdb821b0236daeac4ae637a284b19 (patch)
tree23a0850134393f65a8f186ac941f73b8142f1840 /post-update
parentadd user to notifications (diff)
add hooks.notify
Diffstat (limited to 'post-update')
-rwxr-xr-xpost-update6
1 files changed, 6 insertions, 0 deletions
diff --git a/post-update b/post-update
index 98ed0a3..4a91eb3 100755
--- a/post-update
+++ b/post-update
@@ -3,6 +3,12 @@
default_branch="$(git rev-parse --abbrev-ref HEAD)"
default_branch_path="$(git rev-parse --symbolic-full-name HEAD)"
+if [ -n "$GIT_DIR" ]; then
+ cd "$GIT_DIR"
+elif [ -d .git ]; then
+ cd .git
+fi
+
mkdir -p info/web
if git show "$default_branch":README.md >/dev/null 2>&1; then