dockerfiles/gitserver/create_repo
Jess Frazelle 8330672755
update
Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-01-15 20:42:34 -08:00

13 lines
158 B
Bash
Executable File

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