post-receive (481B)
1 #!/bin/sh 2 3 set -euf 4 5 . /var/git/config.rc 6 7 export LC_CTYPE='en_US.UTF-8' 8 src="$(pwd)" 9 name=$(basename "$src") 10 dst="$WWW_HOME/$(basename "$name" '.git')" 11 mkdir -p "$dst" 12 #chown -R "$GIT_USER:$GIT_USER" "$dst" 13 cd "$dst" || exit 1 14 15 echo "[stagit] building $dst" 16 /usr/local/bin/stagit "$src" 17 18 echo "[stagit] linking $dst" 19 ln -sf log.html index.html 20 ln -sf ../style.css style.css 21 ln -sf ../logo.png logo.png 22 ln -sf ../favicon.png favicon.png 23 ln -sf ../GitLabMono.woff2 GitLabMono.woff2