summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgit/cgitrc4
-rw-r--r--git-wrapper.sh19
2 files changed, 2 insertions, 21 deletions
diff --git a/cgit/cgitrc b/cgit/cgitrc
index 68daaa1..9390ee3 100644
--- a/cgit/cgitrc
+++ b/cgit/cgitrc
@@ -15,8 +15,8 @@ logo=/cgit.png
# Allow http transport git clone
#enable-http-clone=0
-
-
+root-title=a73x git repos
+root-desc=
# if you do not want that webcrawler (like google) index your site
robots=noindex, nofollow
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}'"