summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauricio Pasquier Juan <mauricio@pasquierjuan.com.ar>2013-09-11 00:45:41 -0300
committerMauricio Pasquier Juan <mauricio@pasquierjuan.com.ar>2013-09-11 00:45:41 -0300
commitaf6871f6f4174f254e0ad6f00ccdaed9e68e4cb5 (patch)
treedcc26faa4596802b1fe3cc7035d3c895646b79c7
parent6f362119e111a95d8a1356656b8d4e5527adf8c7 (diff)
Change gitweb's repo owner
-rwxr-xr-xgit-shell-commands/change-owner12
1 files changed, 12 insertions, 0 deletions
diff --git a/git-shell-commands/change-owner b/git-shell-commands/change-owner
new file mode 100755
index 0000000..41bf22b
--- /dev/null
+++ b/git-shell-commands/change-owner
@@ -0,0 +1,12 @@
+#!/bin/sh
+# * change-owner
+# Define quiƩn manda
+# ssh git@host change-owner repo "Hacklab"
+
+set -e
+
+repo=$1; shift
+
+git config -f "${repo}/config" "gitweb.owner" "${@}"
+
+exit $?