From e3031ab2c30e2fd97aaa0b3c93b6342bb7e7db85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 5 Sep 2012 13:02:02 -0300 Subject: Allow multiple mirrors, remove extra .git$ --- git-shell-commands/mirror | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'git-shell-commands') 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 $? -- cgit v1.2.3