]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - scripts/gitcreate
/etc/repo_shell.cfg -> /etc/repo_shell.conf
[repo_shell.git] / scripts / gitcreate
index 2c655157aa0a373f0007314318e091b06803fdfe..16e80ec3b61699bcec8b6365c8483f7eaf795359 100755 (executable)
@@ -1,9 +1,9 @@
 #!/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
@@ -23,7 +23,7 @@ fi
 
 # 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.