Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Wed Sep 20 01:31:33 2023 -0300
Parent: 514ad4b
Added clone cleanup
diff --git a/post-receive b/post-receive index b8f3dfd..a4af3dc 100755 --- a/post-receive +++ b/post-receive @@ -7,8 +7,7 @@ REPO="$(basename $PWD)" OUT="$HOME/www/dovel.email" GITDIR="$HOME/git/dovel.email" -[ -d "$OUT/$REPO/tree" ] || mkdir -p "$OUT/$REPO/tree" - +[ -d "$OUT/$REPO/tree" ] && rm -rf "$OUT/$REPO/tree" git clone . "$OUT/$REPO/tree" # latter on the latest commits section