diff options
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 |
