list

scripts

Repo containing scripts to be used with dovel, and git hooks that powers our web interface.

curl https://dovel.email/scripts.tar tar

78d0959

Author: brian (git@myr.sh)

Date: Wed Sep 20 01:36:18 2023 -0300

Parent: 450793a

Fixed clone cleanup

Diff

diff --git a/post-receive-scripts b/post-receive-scripts
index 0479129..a8b4281 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -8,8 +8,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"

while read oldrev newrev ref