summaryrefslogtreecommitdiff
path: root/builtin-remote.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-08-02 21:38:56 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-02 15:21:59 -0700
commitbc699afcce3c45bb17aaca145d081992ed699a42 (patch)
treee52a0b9ceb2aca3543bfab40dde0f0a1398fe41e /builtin-remote.c
parent372c767610c4e4d7f4832d037ac51a62a59875a3 (diff)
downloadgit-bc699afcce3c45bb17aaca145d081992ed699a42.tar.gz
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>
Diffstat (limited to 'builtin-remote.c')
-rw-r--r--builtin-remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-remote.c b/builtin-remote.c
index 54d1c3e3d1..01945a8651 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -115,7 +115,7 @@ static int add(int argc, const char **argv)
if (mirror) {
strbuf_reset(&buf);
strbuf_addf(&buf, "remote.%s.mirror", name);
- if (git_config_set(buf.buf, "yes"))
+ if (git_config_set(buf.buf, "true"))
return 1;
}