summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-05 13:02:02 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-05 13:02:02 -0300
commite3031ab2c30e2fd97aaa0b3c93b6342bb7e7db85 (patch)
tree269b60dff1cc40abd4b12b0b9c0ad84442029119
parent65c431c8adfc273bd50eddfa327c755d386bcb77 (diff)
Allow multiple mirrors, remove extra .git$
-rwxr-xr-xgit-shell-commands/mirror6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-shell-commands/mirror b/git-shell-commands/mirror
index 2bf9a49..6a2c254 100755
--- a/git-shell-commands/mirror
+++ b/git-shell-commands/mirror
@@ -4,8 +4,8 @@
set -E
-repo="`basename "$1"`.git"
-
-git clone --mirror $1 $repo
+for _m in $@; do
+ git clone --mirror $_m
+done
exit $?