Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle
2016-04-06 18:05:56 -07:00
parent 3dc19702e0
commit 2b0af26ae9
2 changed files with 14 additions and 7 deletions

12
gitserver/create_repo Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
repo=$1
if [ $repo != *.git ]; then
repo="${repo}.git"
fi
echo "Creating $repo"
(
cd "$HOME"
git init --bare "$repo"
chown -R git:git "$repo"
)