From: Nicolas Boisselier Date: Fri, 19 Aug 2016 16:32:19 +0000 (+0200) Subject: git_create fix bug X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=84a1c3a030448d114c5a3784e03e6e164fd84648;p=nb.git git_create fix bug --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 435bd7b3..1972f644 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -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