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:04:15 2024 -0300
Parent: 3c48b52
Added commit section to git page
diff --git a/post-receive b/post-receive index c5bac7e..fb2b555 100755 --- a/post-receive +++ b/post-receive @@ -33,9 +33,15 @@ updategit() { EOF done + printf '\n</dl>\n<h2>Latest commit</h2>\n' >> "$ROOT/git.html" cat <<- EOF >> "$ROOT/git.html" - </dl> + <p><a href="$REPO/log/$1.html">$1</a> on $REPO:</p> + <pre> + $(git show -s "$1") + </pre> + EOF + cat <<- EOF >> "$ROOT/git.html" <h2>Contributing</h2> The dovel team uses the git email workflow to accept contributions. All email sent to dovel.email is considered as git mailling lists, check @@ -61,7 +67,7 @@ updategit() { updateindex() { echo "creating archive" - tar -C "$OUT" -cz $TMP/ --xform="s/$TMP/$REPO/" > "$OUT.tar.gz" + tar -C "$OUT" -cz "$TMP" --xform="s/$TMP/$REPO/" > "$OUT.tar.gz" echo "creating index.html" cat <<- EOF > "$OUT/index.html" @@ -270,7 +276,7 @@ while read oldrev newrev ref do case "$ref" in "refs/heads/main") - updategit + updategit "$newrev" updateindex updaterefs updatetree "$newrev"