summaryrefslogtreecommitdiff
path: root/git-shell-commands/change-owner
diff options
context:
space:
mode:
Diffstat (limited to 'git-shell-commands/change-owner')
-rwxr-xr-xgit-shell-commands/change-owner13
1 files changed, 13 insertions, 0 deletions
diff --git a/git-shell-commands/change-owner b/git-shell-commands/change-owner
new file mode 100755
index 0000000..4cf90c7
--- /dev/null
+++ b/git-shell-commands/change-owner
@@ -0,0 +1,13 @@
+#!/bin/sh
+# * change-owner
+# Define quiƩn manda
+# ssh git@host change-owner repo "Hacklab"
+
+set -e
+
+repo=$1; shift
+
+test -d "${repo}".git && \
+git config -f "${repo}.git/config" "gitweb.owner" "${@}"
+
+exit $?