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

514ad4b

Author: brian (git@myr.sh)

Date: Wed Sep 20 01:29:16 2023 -0300

Parent: 7f42efd

Calling update tree

Diff

diff --git a/post-receive b/post-receive
index 1ee33b4..b8f3dfd 100755
--- a/post-receive
+++ b/post-receive
@@ -20,6 +20,9 @@ git clone . "$OUT/$REPO/tree"
# update repo's index page
. ./hooks/update-repo-index

+# update repo's tree page
+. ./hooks/update-repo-tree
+
# create commit pages
while read oldrev newrev ref
do
diff --git a/post-receive-scripts b/post-receive-scripts
index 2f6539e..0479129 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -27,6 +27,7 @@ do
cp "$TMP/post-receive" "$dir/hooks/"
cp "$TMP/update-git-index" "$dir/hooks/"
cp "$TMP/update-repo-index" "$dir/hooks/"
+			cp "$TMP/update-repo-tree" "$dir/hooks/"
done

# for this repo copy scripts
@@ -39,6 +40,7 @@ done

. ./hooks/update-git-index
. ./hooks/update-repo-index
+. ./hooks/update-repo-tree

echo "cleaning up TMP"
rm -fr "$TMP"