gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

b7c5d1977f7de43b7da93689bc4e09e9a06e9833 - Matthew Ernisse - 1716904549

update from prod

view tree

view raw

diff --git a/files/deploy b/files/deploy
index 487d4ed..d986b3b 100644
--- a/files/deploy
+++ b/files/deploy
@@ -1,6 +1,6 @@
 #!/bin/sh
 # going-flying.com post-receive hook for gemini://
-# (c) 2016-2020 Matthew J. Ernisse <matt@going-flying.com>
+# (c) 2016-2024 Matthew J. Ernisse <matt@going-flying.com>
 # All Rights Reserved.
 #
 # Update the on-disk representation of my capsule when I push a new
@@ -10,6 +10,7 @@ set -e
 
 BRANCH=""
 BUILD_DIR="/var/gemini"
+CLONE_CREDS="$(cat hooks/.clone_creds)"
 GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
 REV=0
 
@@ -74,4 +75,8 @@ sed -e "s/GIT_REV/${REV}/" "$BUILD_DIR/how-built.gmi" > \
 	"$BUILD_DIR/how-built.gmi.new"
 mv $BUILD_DIR/how-built.gmi.new $BUILD_DIR/how-built.gmi
 
+echo "Cloning bare repository for cgi."
+git -C $BUILD_DIR/git/repo clone --bare \
+	https://${CLONE_CREDS}@ssl.ub3rgeek.net/repo/gemini.git
+
 echo "site deployed."