summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 $?