# Skip build if using git push with -o or --push-option if [[ -v GIT_PUSH_OPTION_0 ]]; then exit fi # Solution to # remote: fatal: not a git repository: '.' # https://git-scm.com/docs/githooks#_description unset GIT_DIR # Update worktree cd ~/Code/website git submodule update # Manually copy static since btrfs COW is super fast rm -r /srv/http/www cp -r static /srv/http/www hugo --destination /srv/http/www