From fa5d7ead69fe58e2317ae803e25bc73069b1ec91 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Mon, 22 Dec 2025 18:26:31 +0100 Subject: add git readme command --- modules/git/git-shell-commands/init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/git/git-shell-commands/init') diff --git a/modules/git/git-shell-commands/init b/modules/git/git-shell-commands/init index 603b817..557f20e 100755 --- a/modules/git/git-shell-commands/init +++ b/modules/git/git-shell-commands/init @@ -4,6 +4,7 @@ REPO="$1" if [ ! -f "$REPO/config" ]; then mkdir -p "$REPO" - cd "$REPO" + cd "$REPO" || exit git init --bare --shared + git config cgit.readme "main:README.md" fi -- cgit v1.2.3