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

1ade68e

Author: brian (git@myr.sh)

Date: Thu Sep 21 14:59:02 2023 -0300

Parent: 65262f4

Some cleanup

Diff

diff --git a/post-receive b/post-receive
index a4af3dc..7d85646 100755
--- a/post-receive
+++ b/post-receive
@@ -5,14 +5,10 @@

REPO="$(basename $PWD)"
OUT="$HOME/www/dovel.email"
-GITDIR="$HOME/git/dovel.email"

[ -d "$OUT/$REPO/tree" ] && rm -rf "$OUT/$REPO/tree"
git clone . "$OUT/$REPO/tree"

-# latter on the latest commits section
-# git --git-dir "$dir" log -n 1 --format="%h at %ah"
-
# update git's index page
. ./hooks/update-git-index

@@ -23,14 +19,14 @@ git clone . "$OUT/$REPO/tree"
. ./hooks/update-repo-tree

# create commit pages
-while read oldrev newrev ref
-do
-        # only checking out the master (or whatever branch you would like to deploy)
-        if [ "$ref" = "refs/heads/$BRANCH" ]
-        then
-                #git --work-tree="/home/blmayer/www/myr.sh" --git-dir="${GIT_DIR}" checkout -f ${BRANCH}
-        else
-                echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server."
-        fi
-done
+# while read oldrev newrev ref
+# do
+#         # only checking out the master (or whatever branch you would like to deploy)
+#         if [ "$ref" = "refs/heads/$BRANCH" ]
+#         then
+#                 #git --work-tree="/home/blmayer/www/myr.sh" --git-dir="${GIT_DIR}" checkout -f ${BRANCH}
+#         else
+#                 echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server."
+#         fi
+# done

diff --git a/post-receive-scripts b/post-receive-scripts
index a8b4281..06bb085 100755
--- a/post-receive-scripts
+++ b/post-receive-scripts
@@ -6,7 +6,6 @@
BRANCH="main"
REPO="$(basename $PWD)"
OUT="$HOME/www/dovel.email"
-GITDIR="$HOME/git/dovel.email"

[ -d "$OUT/$REPO/tree" ] && rm -rf "$OUT/$REPO/tree"
git clone . "$OUT/$REPO/tree"