summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirror
blob: 6a2c254079f8ace815ea410b84f03d5e501a4b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Mirrors a repository
# ssh git@host mirror git://url/repo.git

set -E

for _m in $@; do
    git clone --mirror $_m
done

exit $?