Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (brian@myr.sh)
Date: Fri Apr 19 12:12:30 2024 -0300
Parent: 57807a8
Fixed hash
diff --git a/post-receive b/post-receive index fb2b555..2397f41 100755 --- a/post-receive +++ b/post-receive @@ -34,8 +34,10 @@ updategit() { done printf '\n</dl>\n<h2>Latest commit</h2>\n' >> "$ROOT/git.html" + + hash="$(git show --format='%h' -s)" cat <<- EOF >> "$ROOT/git.html" - <p><a href="$REPO/log/$1.html">$1</a> on $REPO:</p> + <p><a href="$REPO/log/$hash.html">$hash</a> on $REPO:</p> <pre> $(git show -s "$1") </pre> @@ -276,7 +278,7 @@ while read oldrev newrev ref do case "$ref" in "refs/heads/main") - updategit "$newrev" + updategit updateindex updaterefs updatetree "$newrev"