summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 01:38:33 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-11 01:38:33 -0300
commit48828bef374bf88f8e61a4ba8a31c872131d925e (patch)
treea7b9a291f0476022654facd78d43be007aee8bee
parent274e882c78f4e29820281608bd7c742dbf666717 (diff)
Add .git sufix
-rwxr-xr-xgit-shell-commands/change-owner3
1 files changed, 2 insertions, 1 deletions
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 $?