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

a52dc58

Author: brian (git@myr.sh)

Date: Tue Sep 19 17:12:09 2023 -0300

Parent: 7aa984e

Added basename

Diff

diff --git a/post-receive b/post-receive
index cf247e7..881c840 100755
--- a/post-receive
+++ b/post-receive
@@ -49,11 +49,11 @@ for dir in "$GITDIR"/*
do
{
cat <<- EOF
-		<dt>$dir</dt>
-		<dd>"$(cat "$dir/description")</dd>
+		<dt>$(basename $dir)</dt>
+		<dd>$(cat "$dir/description")</dd>
<dd>Last commit
EOF
-		git --git-dir "$dir/.git/" log -n 1 --format="%h at %ah"
+		git --git-dir "$dir" log -n 1 --format="%h at %ah"
echo "</dd>"
}  >> "$OUT/git.html"
done