dockerfiles/gitserver/create_repo
Jess Frazelle 2b0af26ae9
fixes
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
2016-04-06 18:06:05 -07:00

13 lines
156 B
Bash
Executable File

#!/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"
)