[lkml]   [2011]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 00/20] [GIT PULL][v3.2] tracing: queued updates
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:// 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, though.

You might find this thread interesting:

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

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.


 \ /
  Last update: 2011-10-12 16:29    [W:0.063 / U:4.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site