* Re: [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates
[not found] ` <20002.1318367320@turing-police.cc.vt.edu>
@ 2011-10-12 8:07 ` Ingo Molnar
2011-10-12 14:19 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2011-10-12 8:07 UTC (permalink / raw)
To: Valdis.Kletnieks, git
Cc: Steven Rostedt, linux-kernel, Andrew Morton, Thomas Gleixner,
Frederic Weisbecker
* Valdis.Kletnieks@vt.edu <Valdis.Kletnieks@vt.edu> wrote:
> On Tue, 11 Oct 2011 07:50:17 +0200, Ingo Molnar said:
>
> > $ git pull git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git tip/perf/core
> > fatal: The remote end hung up unexpectedly
>
> Is it possible to get 'git' to say something more informative than
> "hung up unexpectedly"? "Tree not found, check URL" or similar
> would be nice...
I've Cc:-ed the Git development list which has lots of very
responsive gents on it eager to improve Git.
I see this message dozens of times per year and i am always confused
about the message.
Firstly, arguably, typoing something is not 'fatal' really - it's
just a resource that was not found on the server.
Secondly, and more importantly, the reason for the failed pull is
indeed important to know, if you want to resolve the problem with a
minimum fuss:
- Was it the tree that didnt exist?
- Or the branch?
- Or was there some other problem [such as a truly unexpectedly
closed transport socket]?
It's really useful for a painless UI flow to disambiguate failure
messages into clearly actionable variants.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates
2011-10-12 8:07 ` [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates Ingo Molnar
@ 2011-10-12 14:19 ` Jeff King
2011-10-12 16:29 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2011-10-12 14:19 UTC (permalink / raw)
To: Ingo Molnar
Cc: Valdis.Kletnieks, git, Steven Rostedt, linux-kernel,
Andrew Morton, Thomas Gleixner, Frederic Weisbecker
On Wed, Oct 12, 2011 at 10:07:14AM +0200, Ingo Molnar wrote:
> > On Tue, 11 Oct 2011 07:50:17 +0200, Ingo Molnar said:
> >
> > > $ git pull git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git tip/perf/core
> > > fatal: The remote end hung up unexpectedly
> >
> > Is it possible to get 'git' to say something more informative than
> > "hung up unexpectedly"? "Tree not found, check URL" or similar
> > would be nice...
It's not possible for the client to say anything more. The server sees
that the request isn't valid and hangs up without saying anything. So
the server needs to be changed to output better responses.
> Firstly, arguably, typoing something is not 'fatal' really - it's
> just a resource that was not found on the server.
>
> Secondly, and more importantly, the reason for the failed pull is
> indeed important to know, if you want to resolve the problem with a
> minimum fuss:
>
> - Was it the tree that didnt exist?
> - Or the branch?
> - Or was there some other problem [such as a truly unexpectedly
> closed transport socket]?
>
> It's really useful for a painless UI flow to disambiguate failure
> messages into clearly actionable variants.
I agree. I think some people are concerned with leaking information
about which repos exist and how they are configured. That is probably
not a big problem for a public site like kernel.org, though.
You might find this thread interesting:
http://thread.gmane.org/gmane.comp.version-control.git/182529/focus=182642
It seems to have resulted in a patch that will at least say "access
denied" for every error. Which is a step up from "the remote end hung up
unexpectedly", but I do think most users would appreciate it being more
specific.
Perhaps we just need a config option to turn on more verbose messages,
if the site decides that there's no security implications to doing so.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates
2011-10-12 14:19 ` Jeff King
@ 2011-10-12 16:29 ` Ingo Molnar
0 siblings, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2011-10-12 16:29 UTC (permalink / raw)
To: Jeff King
Cc: Valdis.Kletnieks, git, Steven Rostedt, linux-kernel,
Andrew Morton, Thomas Gleixner, Frederic Weisbecker
* Jeff King <peff@peff.net> wrote:
> > It's really useful for a painless UI flow to disambiguate failure
> > messages into clearly actionable variants.
>
> I agree. I think some people are concerned with leaking information
> about which repos exist and how they are configured. That is
> probably not a big problem for a public site like kernel.org,
> though.
Well, a gitconfig option could be provided to not leak that small
amount of info - but it would otherwise be weird for an OSS SCM to
default to a behavior that only makes sense with closed source,
right? :-)
Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-12 16:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20111010133852.829771373@goodmis.org>
[not found] ` <20111011055017.GA32616@elte.hu>
[not found] ` <20002.1318367320@turing-police.cc.vt.edu>
2011-10-12 8:07 ` [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates Ingo Molnar
2011-10-12 14:19 ` Jeff King
2011-10-12 16:29 ` Ingo Molnar
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).