Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: blmayer (bleemayer@gmail.com)
Date: Wed Oct 4 02:24:48 2023 -0300
Parent: 881d84a
Fixed typo - Deleted refs file
diff --git a/post-receive-scripts b/post-receive-scripts index e0a620e..75e9570 100755 --- a/post-receive-scripts +++ b/post-receive-scripts @@ -3,7 +3,7 @@ #for debugging #set -ex -echo "copying scritps" +echo "copying scripts" TMP="$(mktemp -d)" git --work-tree="$TMP" checkout -f main
diff --git a/update-repo-refs b/update-repo-refs deleted file mode 100755 index d52ba4d..0000000 --- a/update-repo-refs +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# for debugging -# set -ex -echo "updating repo refs" - -. ./hooks/aux.sh - -OUT="$HOME/www/dovel.email/$REPO" - -echo "creating refs.html" -cat << EOF > "$OUT/refs.html" - $(pagehead "$REPO") - $(pagesummary) - <hr> - <h2>Branches</h2> - <table> -EOF - -git show-ref --heads | while read -r h n -do - echo "<tr><td>$h</td><td>$n</td></tr>" >> "$OUT/refs.html" -done - -echo "</table>\n<h2>Tags</h2>\n<table>" >> "$OUT/refs.html" - -git show-ref --tags | while read -r h n -do - echo "<tr><td>$h</td><td>$n</td></tr>" >> "$OUT/refs.html" -done - -cat << EOF >> "$OUT/refs.html" -</table> -</body> -</html> -EOF -