aboutsummaryrefslogtreecommitdiff
path: root/modules/git/git-shell-commands/init
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmodules/git/git-shell-commands/init9
1 files changed, 9 insertions, 0 deletions
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