From 84a1c3a030448d114c5a3784e03e6e164fd84648 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 19 Aug 2016 18:32:19 +0200 Subject: [PATCH] git_create fix bug --- etc/profile.d/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3