dockerfiles/gitserver/create_repo
Jess Frazelle dd4a89d9b0 update create_repo script
;

Signed-off-by: Jess Frazelle <acidburn@google.com>
2017-04-10 15:19:36 +00:00

13 lines
162 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"
)