From: Sverre Rabbelier <srabbelier@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Samium Gromoff <_deepfire@feelingofgreen.ru>,
git@vger.kernel.org, Daniel Barkalow <barkalow@iabervon.org>,
Tay Ray Chuan <rctay89@gmail.com>, Mike Hommey <mh@glandium.org>
Subject: Re: Fw: git-core: SIGSEGV during {peek,ls}-remote on HTTP remotes.
Date: Sun, 1 Nov 2009 15:46:40 +0100 [thread overview]
Message-ID: <fabb9a1e0911010646v2043bdb7l9215f1114e9e8385@mail.gmail.com> (raw)
In-Reply-To: <7v8weq50pm.fsf@alter.siamese.dyndns.org>
Heya,
On Sun, Nov 1, 2009 at 05:27, Junio C Hamano <gitster@pobox.com> wrote:
> - Should we fix get_helper() in transport-helper.c, instead of touching
> ls-remote.c like this patch does?
Probably, yes.
> This issue really boils down to this question: is it valid for a
> transport to have NULL in its remote field, and should all the code
> that touch transport be prepared to deal with such a transport
> structure?
I think the code in transport-helper should be prepared to deal with
such a field appropriately, since it knows beforehand that only a few
operations will be performed on such a remote (I'm guessing just the
'list' command).
> In general, what should the initial environment for helpers be? Should
> they assume that they have to figure out where the git repository is
> themselves (in other words, should they assume they cannot rely on
> anything the caller does before they are called?
Let's not duplicate that logic, if git can figure out where we are, it
should do so, if it can't, then the helper can't either.
> Would the caller
> generally have done the usual repo discovery (including chdir() to the
> toplevel), and there are some set of assumptions they can make? If so
> what are they?
Probably the above, if there is going to be a git repository, we'll
have found it, if there isn't one, we're in 'bare' mode.
--
Cheers,
Sverre Rabbelier
next prev parent reply other threads:[~2009-11-01 14:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 22:07 Fw: git-core: SIGSEGV during {peek,ls}-remote on HTTP remotes Samium Gromoff
2009-11-01 4:27 ` Junio C Hamano
2009-11-01 14:46 ` Sverre Rabbelier [this message]
2009-11-01 20:16 ` Daniel Barkalow
2009-11-01 20:54 ` Sverre Rabbelier
2009-11-02 4:10 ` Junio C Hamano
2009-11-01 19:43 ` Daniel Barkalow
2009-11-01 20:15 ` Junio C Hamano
2009-11-01 21:19 ` Daniel Barkalow
2009-11-01 23:04 ` Jeff King
2009-11-02 0:59 ` Daniel Barkalow
2009-11-02 19:21 ` Clemens Buchacher
2009-11-01 8:19 ` Mike Hommey
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=fabb9a1e0911010646v2043bdb7l9215f1114e9e8385@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=_deepfire@feelingofgreen.ru \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mh@glandium.org \
--cc=rctay89@gmail.com \
/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).