From 48828bef374bf88f8e61a4ba8a31c872131d925e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 11 Sep 2013 01:38:33 -0300 Subject: Add .git sufix --- git-shell-commands/change-owner | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-shell-commands/change-owner b/git-shell-commands/change-owner index 41bf22b..4cf90c7 100755 --- a/git-shell-commands/change-owner +++ b/git-shell-commands/change-owner @@ -7,6 +7,7 @@ set -e repo=$1; shift -git config -f "${repo}/config" "gitweb.owner" "${@}" +test -d "${repo}".git && \ +git config -f "${repo}.git/config" "gitweb.owner" "${@}" exit $? -- cgit v1.2.3