diff options
| author | a73x <[email protected]> | 2024-08-25 14:14:03 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-08-25 14:14:10 +0100 |
| commit | d463f706d01b22f84aae666ece3b853f913b4d9c (patch) | |
| tree | b92059041756909fd4c252f292571c4d70c22a72 | |
| parent | d76ca9ec81086e486a50a4aa03126271a3e520de (diff) | |
| -rw-r--r-- | cgit/cgitrc | 4 | ||||
| -rw-r--r-- | git-wrapper.sh | 19 |
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}'" |
