Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Tue Sep 19 17:12:09 2023 -0300
Parent: 7aa984e
Added basename
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