summaryrefslogtreecommitdiff
path: root/git-shell-commands/mirror
blob: 2bf9a4964c3303480b2365dd59a13f1dea810502 (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

repo="`basename "$1"`.git"

git clone --mirror $1 $repo

exit $?