aboutsummaryrefslogtreecommitdiffstats
path: root/create-repo
diff options
context:
space:
mode:
Diffstat (limited to 'create-repo')
-rwxr-xr-xcreate-repo6
1 files changed, 6 insertions, 0 deletions
diff --git a/create-repo b/create-repo
new file mode 100755
index 0000000..2883b58
--- /dev/null
+++ b/create-repo
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -n "$1" ]; then
+ echo "Usage: create-repo <reponame>"
+ exit 1
+fi
+sudo -u git git init --bare "$1"