aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/init
blob: 557f20e87b585280ad19d2999ec7140d6bf30a18 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh

REPO="$1"

if [ ! -f "$REPO/config" ]; then 
  mkdir -p "$REPO"
  cd "$REPO" || exit
  git init --bare --shared
  git config cgit.readme "main:README.md"
fi