clone: Add an option to set up a mirror
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Sat, 2 Aug 2008 19:38:56 +0000 (21:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Aug 2008 22:21:59 +0000 (15:21 -0700)
commitbc699afcce3c45bb17aaca145d081992ed699a42
treee52a0b9ceb2aca3543bfab40dde0f0a1398fe41e
parent372c767610c4e4d7f4832d037ac51a62a59875a3
clone: Add an option to set up a mirror

The command line

$ git clone --mirror $URL

is now a short-hand for

$ git clone --bare $URL
$ (cd $(basename $URL) && git remote add --mirror origin $URL)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-clone.txt
builtin-clone.c
builtin-remote.c
t/t5601-clone.sh