diff options
| author | 2026-05-18 09:25:02 -0600 | |
|---|---|---|
| committer | 2026-05-18 09:25:02 -0600 | |
| commit | a0140beadfffdb821b0236daeac4ae637a284b19 (patch) | |
| tree | 23a0850134393f65a8f186ac941f73b8142f1840 /post-update | |
| parent | add user to notifications (diff) | |
add hooks.notify
Diffstat (limited to 'post-update')
| -rwxr-xr-x | post-update | 6 |
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 |
