summaryrefslogtreecommitdiff
path: root/git-wrapper.sh
diff options
context:
space:
mode:
authora73x <[email protected]>2024-08-25 14:14:03 +0100
committera73x <[email protected]>2024-08-25 14:14:10 +0100
commitd463f706d01b22f84aae666ece3b853f913b4d9c (patch)
treeb92059041756909fd4c252f292571c4d70c22a72 /git-wrapper.sh
parentd76ca9ec81086e486a50a4aa03126271a3e520de (diff)
feat: set cgit titleHEADmain
Diffstat (limited to 'git-wrapper.sh')
-rw-r--r--git-wrapper.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/git-wrapper.sh b/git-wrapper.sh
deleted file mode 100644
index 7a00b31..0000000
--- a/git-wrapper.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-COMMAND=$(echo "$SSH_ORIGINAL_COMMAND" | awk '{print $1}')
-REPO_NAME=$(echo "$SSH_ORIGINAL_COMMAND" | awk '{print $2}' | tr -d "'")
-REPO_NAME=repos/${REPO_NAME}
-
-init_repo() {
- echo "creating repo"
- mkdir -p ${REPO_NAME}
- cd ${REPO_NAME} || exit
- git init --bare --initial-branch=main
-}
-
-if [ ! -d "$REPO_NAME" ]; then
- captured=$(init_repo)
-fi
-
-echo "${COMMAND} '${REPO_NAME}'" >> logs
-exec git-shell -c "${COMMAND} '${REPO_NAME}'"