From: Junio C Hamano <gitster@pobox.com>
To: Mike Hommey <mh@glandium.org>
Cc: Sven <svoop@delirium.ch>, git@vger.kernel.org
Subject: Re: [BUG REPORT] "git ls-remote http://git.domain.com/repo.git HEAD" doesn't work
Date: Sat, 14 Jun 2008 11:09:32 -0700 [thread overview]
Message-ID: <7vlk17horn.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <7vprqkh423.fsf@gitster.siamese.dyndns.org> (Junio C. Hamano's message of "Sat, 14 Jun 2008 00:24:36 -0700")
Junio C Hamano <gitster@pobox.com> writes:
> Mike Hommey <mh@glandium.org> writes:
>
>> http://www.kernel.org/pub/scm/git/git.git/info/refs doesn't contain HEAD.
>> Shouldn't it ?
>
> Traditionally it _never_ talked about HEAD...
Well, to clarify:
(1) I do not think it is unreasonable to change update-server-info to
include HEAD in its output. That would make ls-remote output over
all protocols consistent;
(2) However, the client-side tools that run ls-remote may have to
interact with repositories that are managed with older git (including
"Today's git"). If they rely on the presense of HEAD, they _are_
buggy today (and have been so forever), and they _will stay_ buggy
when they need to access such repositories.
So I do not mind (1) for its "consistency" value, but that would not be a
"fix" for your problem.
Also we can do (1) only after somebody audits our own callers to make sure
that they do not to get upset by presense of HEAD. They might have been
assuming they'd get nothing outside refs/ when talking via http, and
suddenly starting to emit HEAD might break them, in which case we cannot
afford to do (1) --- that would break older clients.
next prev parent reply other threads:[~2008-06-14 18:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-14 7:03 [BUG REPORT] "git ls-remote http://git.domain.com/repo.git HEAD" doesn't work Sven
2008-06-14 7:10 ` Mike Hommey
2008-06-14 7:24 ` Junio C Hamano
2008-06-14 7:49 ` Sven
2008-06-14 9:02 ` Mike Hommey
2008-06-14 9:19 ` Jeff King
2008-06-14 9:28 ` Mike Hommey
2008-06-14 9:24 ` Sven
2008-06-14 9:31 ` [BUG REPORT] "git ls-remote http://git.domain.com/repo.git?HEAD" " Jeff King
2008-06-14 9:40 ` Sven
2008-06-14 18:09 ` Junio C Hamano [this message]
2008-06-14 18:26 ` [BUG REPORT] Sven
2008-06-14 23:37 ` Jeff King
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vlk17horn.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mh@glandium.org \
--cc=svoop@delirium.ch \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).