]> git.nbdom.net Git - nb.git/commitdiff
git_create fix bug
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 19 Aug 2016 16:32:19 +0000 (18:32 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 19 Aug 2016 16:32:19 +0000 (18:32 +0200)
etc/profile.d/git.sh

index 435bd7b34aacac8f128c61b9ff9dbdd801596f89..1972f6446023cba51c651341fcae31f687b60497 100644 (file)
@@ -85,7 +85,7 @@ git_create() {
 
   echo ">git init --bare ${dir}.git"
   local user=${repo%@*}
-  ssh root@${repo#*@} "cd ~git || exit; test -e ${dir}.git && echo "${dir}.git already exists on $repo" 1>&2 && exit 1; git init --bare ${dir}.git && chown $user.$user ${dir}.git" || return
+  ssh root@${repo#*@} "cd ~git || exit; test -e ${dir}.git && echo "${dir}.git already exists on $repo" 1>&2 && exit 1; git init --bare ${dir}.git && chown -R $user.$user ${dir}.git" || return
 
   echo ">git init"
   git init