aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/init
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2025-12-22 18:26:31 +0100
committerMax Audron <audron@cocaine.farm>2025-12-22 19:01:35 +0100
commitfa5d7ead69fe58e2317ae803e25bc73069b1ec91 (patch)
tree4ec270405db8ac24fb8643801a9a6174eb8ac03c /modules/git/git-shell-commands/init
parentupdate catinator (diff)
add git readme command
Diffstat (limited to 'modules/git/git-shell-commands/init')
-rwxr-xr-xmodules/git/git-shell-commands/init3
1 files changed, 2 insertions, 1 deletions
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