]> git.mar77i.info Git - admin/commitdiff
add hublib, minor cleanups in post-receive.sh
authormar77i <mar77i@protonmail.ch>
Sun, 3 Mar 2024 23:55:00 +0000 (00:55 +0100)
committermar77i <mar77i@protonmail.ch>
Mon, 4 Mar 2024 00:01:01 +0000 (01:01 +0100)
gitweb_configs.py
post-receive.sh

index 0616f6d1743cbdc2253a53dff29a9a3b64eec2bd..f69839e8407d5b559c9abc6801833b486b31fbc1 100755 (executable)
@@ -15,6 +15,10 @@ GITWEB_CONFIGS = {
         "owner": "mar77i <mar77i@protonmail.ch>",
         "description": "mar77i.info website",
     },
+    "hublib": {
+        "owner": "mar77i <mar77i@protonmail.ch>",
+        "description": "base for websocket toys",
+    },
 }
 
 
index 062d0724a4b8166b875004bb32af2e58fab9e1a7..23199d007c103ce7e43bbe262d304b55bee4b9e9 100755 (executable)
@@ -10,9 +10,6 @@ while read _ _ refname; do
 done
 EOF
 
-hook_hash="$(printf '%s' "${hook}"|sha256sum| cut -d\  -f1)"
-[[ -f "${dest}" ]] && current_hash="$(sha256sum hooks/post-receive| cut -d\  -f1)"
-
 print_and_run() {
     printf ">>>"
     for (( i = 1; i < $# + 1; i++ )); do
@@ -37,6 +34,8 @@ if [[ "${1}" == --install ]]; then
     exit
 fi
 
+hook_hash="$(printf '%s' "${hook}"|sha256sum| cut -d\  -f1)"
+[[ -f "${dest}" ]] && current_hash="$(sha256sum hooks/post-receive| cut -d\  -f1)"
 [[ "${hook_hash}" != "${current_hash}" ]] && update_post_receive_hook
 
 update_gitweb_theme() {