From 53d246c2adda06165b21c55a2d5a4dc867b66994 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 15 Nov 2025 00:22:34 +0100 Subject: add git shell scripts --- modules/git/git-shell-commands/init | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 modules/git/git-shell-commands/init (limited to 'modules/git/git-shell-commands/init') diff --git a/modules/git/git-shell-commands/init b/modules/git/git-shell-commands/init new file mode 100755 index 0000000..603b817 --- /dev/null +++ b/modules/git/git-shell-commands/init @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +REPO="$1" + +if [ ! -f "$REPO/config" ]; then + mkdir -p "$REPO" + cd "$REPO" + git init --bare --shared +fi -- cgit v1.2.3