From: Linus Torvalds <torvalds@osdl.org>
To: Goo GGooo <googgooo@gmail.com>
Cc: linux-kernel@vger.kernel.org, git@vger.kernel.org
Subject: Re: 2.6.17-rc6-mm2
Date: Thu, 15 Jun 2006 19:46:18 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0606151937360.5498@g5.osdl.org> (raw)
In-Reply-To: <ef5305790606151814i252c37c4mdd005f11f06ceac@mail.gmail.com>
On Fri, 16 Jun 2006, Goo GGooo wrote:
>
> That's confusing - I believed all protocols should behave the same way...?
Not really. The primary protocol is the native git one, and the others try
to do a best effort, but the http protocol really can't do a very good
job unless the server side has run "git update-server-info" to help the
http client along.
I suspect that the -mm git tree simply doesn't do that. In fact, even the
main tree didn't use to do it, but I finally just broke down and added the
proper hook to make it always do it automatically when I push.
(In case Andrew wants to do that, the way to do it is:
echo -e "#!/bin/sh\nexec git-update-server-info" > hooks/post-update
chmod +x hooks/post-update
inside the git repository - all it will do is always execute that script,
and this "git-update-server-info", after you've updated the repo).
Finally, the rsync protocol just copies all objects over, and since it
doesn't even know _which_ objects it is getting, it doesn't do the normal
tag following that the native git protocol does.
So to recap:
- http is fundamentally weaker, and needs some server-side help to work
- rsync is fine for the initial clone, but doesn't actually know what
it's doing, so the end result can actually even be a corrupted
repository, because you happened to rsync just as it was updating.
- the native git protocol generally should be considered the golden
standard, where the other ones are just fallbacks in case of problems
(like firewalls that don't let git:// through, or more commonly hosted
servers that don't do the git protocol at all).
Which hopefully clarifies the issue a bit.
Linus
next prev parent reply other threads:[~2006-06-16 2:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ef5305790606142040r5912ce58kf9f889c3d61b2cc0@mail.gmail.com>
2006-06-16 1:14 ` 2.6.17-rc6-mm2 Goo GGooo
2006-06-16 2:46 ` Linus Torvalds [this message]
2006-06-16 5:49 ` 2.6.17-rc6-mm2 Goo GGooo
2006-06-16 6:39 ` 2.6.17-rc6-mm2 Linus Torvalds
2006-06-16 20:56 ` 2.6.17-rc6-mm2 H. Peter Anvin
2006-06-16 22:52 ` 2.6.17-rc6-mm2 Junio C Hamano
2006-06-17 0:22 ` 2.6.17-rc6-mm2 Linus Torvalds
2006-06-16 22:44 ` 2.6.17-rc6-mm2 bert hubert
2006-06-20 3:01 ` 2.6.17-rc6-mm2 Michal Ludvig
2006-06-20 3:22 ` 2.6.17-rc6-mm2 Linus Torvalds
2006-06-16 12:40 ` 2.6.17-rc6-mm2 Uwe Zeisberger
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=Pine.LNX.4.64.0606151937360.5498@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=git@vger.kernel.org \
--cc=googgooo@gmail.com \
--cc=linux-kernel@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 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).