From: James Pickens <jepicken@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git ML <git@vger.kernel.org>, Jeff King <peff@peff.net>
Subject: Re: 'git clone' doesn't use alternates automatically?
Date: Sat, 31 Jan 2009 18:32:06 -0700 [thread overview]
Message-ID: <885649360901311732t6e4f8651p6c3955f018b9a36c@mail.gmail.com> (raw)
In-Reply-To: <7vtz7f2cy6.fsf@gitster.siamese.dyndns.org>
On Sat, Jan 31, 2009, Junio C Hamano <gitster@pobox.com> wrote:
> When you say "git clone" without -s, you are saying "I do not want to use
> the repository I am cloning from as my alternate, because I do not know if
> will stay stable. I do not trust it."
Yes, I'm aware of the caveats of -s. I was talking about what
happens when I *don't* use -s.
> Now, if you are cloning from a local filesystem, by default we will copy
> the objects/info/alternates from the source repository to the new one. It
Crap, I didn't realize the alternates were only copied when you
clone from the local filesystem. I wanted to use this when
cloning over ssh from site A to site B, to automatically add a
mirror at site B as an alternate. Sounds like I have no choice
but to use --reference for that.
> I suspect you are trying to improve the other extreme end: trusting all
> the other repositories involved in the cloning process a lot more than the
> code currently does.
What I was suggesting did not involve trusting anything any more
than the current code does. It just meant taking immediate
advantage of the trust that was already there.
Thanks for your input,
James
next prev parent reply other threads:[~2009-02-01 1:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 22:12 'git clone' doesn't use alternates automatically? James Pickens
2009-01-31 7:12 ` Jeff King
2009-01-31 20:08 ` James Pickens
2009-01-31 21:08 ` Jakub Narebski
2009-01-31 21:43 ` James Pickens
2009-01-31 21:55 ` Jeff King
2009-02-01 1:19 ` Junio C Hamano
2009-02-02 13:07 ` Jeff King
2009-02-03 4:30 ` Junio C Hamano
2009-02-03 6:06 ` Jeff King
2009-02-01 0:55 ` Junio C Hamano
2009-02-01 1:32 ` James Pickens [this message]
2009-02-01 1:38 ` 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=885649360901311732t6e4f8651p6c3955f018b9a36c@mail.gmail.com \
--to=jepicken@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).