From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/2] clone: Add an option to set up a mirror
Date: Sat, 02 Aug 2008 11:55:04 -0700 [thread overview]
Message-ID: <7vr697l01j.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0808011600170.9611@pacific.mpi-cbg.de.mpi-cbg.de> (Johannes Schindelin's message of "Fri, 1 Aug 2008 16:00:45 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 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)
I think this would be a useful behaviour and I am very tempted to violate
the general policy of not taking any new options nor features after -rc1.
I however notice that there are differences bewteen the above sequence and
what your code actually does:
- The "remote add --mirror" sequence tells it to mirror everything, but
the patch still mirrors only heads;
- You are not setting up "remote.*.mirror = yes" in the configuration;
next prev parent reply other threads:[~2008-08-02 18:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 14:00 [PATCH 1/2] clone: Add an option to set up a mirror Johannes Schindelin
2008-08-01 14:01 ` [PATCH 2/2] clone --bare: Add ".git" suffix to the directory name to clone into Johannes Schindelin
2008-08-01 14:01 ` Marcus Griep
2008-08-01 15:34 ` Bert Wesarg
2008-08-01 14:27 ` [PATCH 1/2] clone: Add an option to set up a mirror Miklos Vajna
2008-08-02 18:55 ` Junio C Hamano [this message]
2008-08-02 19:38 ` [PATCH v2] " Johannes Schindelin
2008-08-02 19:39 ` Johannes Schindelin
2008-08-02 20:46 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vr697l01j.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.