#!/bin/sh
# gitcreate is part of the repo_shell distribution.
-source /etc/repo_shell.cfg
+eval $(sed -e 's| ||g' < /etc/repo_shell.conf)
if [ -z "$owner" -o -z "$git_root" -o -z "$git_acl_file" ]; then
- echo "$0: please configure /etc/repo_shell.cfg"
+ echo "$0: please configure /etc/repo_shell.conf"
fi
if [ "$(whoami)" != "$owner" ]; then
# Create the respository
umask 027
-git --git-dir "$git_root/$1.git" init --bare
+git --git-dir "$git_root/$1" init --bare
[ $? -ne 0 ] && exit 1
echo "Repository created.