{"thread":{"id":"30800","subject":"git clone over HTTP returns 500 on invalid host name","startedAt":"2012-06-13T23:36:33Z","lastAt":"2012-06-13T23:43:19Z","messageCount":3,"participants":["Shawn Pearce","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"193606","messageId":"CAJo=hJuax3-x53HJT-s32euyf2=d57MsRCQWo6NZO3OL35+o7g@mail.gmail.com","threadId":"30800","inReplyTo":null,"subject":"git clone over HTTP returns 500 on invalid host name","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2012-06-13T23:36:33Z","receivedAt":"2012-06-13T23:36:33Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"$ git clone https://this.host.does.not.exist/foo\nCloning into 'foo'...\nerror: The requested URL returned error: 500 while accessing\nhttp://this.host.does.not.exist/foo/info/refs\nfatal: HTTP request failed\n\n\nHmm. Telling me the host doesn't exist is more useful than 500:\n\n$ git clone git://this.host.does.not.exist/foo\nCloning into 'foo'...\nfatal: Unable to look up this.host.does.not.exist (port 9418) (Name or\nservice not known)\n\n\nDoes anyone care about this other than me?  :-)\n"},{"id":"193607","messageId":"7vbokmg4qf.fsf@alter.siamese.dyndns.org","threadId":"30800","inReplyTo":"CAJo=hJuax3-x53HJT-s32euyf2=d57MsRCQWo6NZO3OL35+o7g@mail.gmail.com","subject":"Re: git clone over HTTP returns 500 on invalid host name","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-13T23:40:56Z","receivedAt":"2012-06-13T23:40:56Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Shawn Pearce <spearce@spearce.org> writes:\n\n> $ git clone https://this.host.does.not.exist/foo\n> Cloning into 'foo'...\n> error: The requested URL returned error: 500 while accessing\n> http://this.host.does.not.exist/foo/info/refs\n> fatal: HTTP request failed\n>\n>\n> Hmm. Telling me the host doesn't exist is more useful than 500:\n>\n> $ git clone git://this.host.does.not.exist/foo\n> Cloning into 'foo'...\n> fatal: Unable to look up this.host.does.not.exist (port 9418) (Name or\n> service not known)\n>\n>\n> Does anyone care about this other than me?  :-)\n\n\n$ git clone https://this.host.does.not.exist/foo\nCloning into 'foo'...\nerror: Couldn't resolve host 'this.host.does.not.exist' while accessing https://this.host.does.not.exist/foo/info/refs\nfatal: HTTP request failed\n\nWhat are we doing differently?  Perhaps you have a custom proxy that\nthrows 500 back at you or something?\n"},{"id":"193608","messageId":"CAJo=hJv-gbpOzTmP+uTHXvuQHaDiH0PTVXqURUhLrLcfO4YEiQ@mail.gmail.com","threadId":"30800","inReplyTo":"7vbokmg4qf.fsf@alter.siamese.dyndns.org","subject":"Re: git clone over HTTP returns 500 on invalid host name","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2012-06-13T23:43:19Z","receivedAt":"2012-06-13T23:43:19Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"On Wed, Jun 13, 2012 at 4:40 PM, Junio C Hamano <gitster@pobox.com> wrote:\n> Shawn Pearce <spearce@spearce.org> writes:\n>\n>> $ git clone https://this.host.does.not.exist/foo\n>> Cloning into 'foo'...\n>> error: The requested URL returned error: 500 while accessing\n>> http://this.host.does.not.exist/foo/info/refs\n>> fatal: HTTP request failed\n>>\n>>\n>> Hmm. Telling me the host doesn't exist is more useful than 500:\n>>\n>> $ git clone git://this.host.does.not.exist/foo\n>> Cloning into 'foo'...\n>> fatal: Unable to look up this.host.does.not.exist (port 9418) (Name or\n>> service not known)\n>>\n>>\n>> Does anyone care about this other than me?  :-)\n>\n>\n> $ git clone https://this.host.does.not.exist/foo\n> Cloning into 'foo'...\n> error: Couldn't resolve host 'this.host.does.not.exist' while accessing https://this.host.does.not.exist/foo/info/refs\n> fatal: HTTP request failed\n>\n> What are we doing differently?  Perhaps you have a custom proxy that\n> throws 500 back at you or something?\n\nGrrr. Yes. Its the contrib/persistent-https proxy that is causing\nthis, and a url.insteadof in ~/.gitconfig that always uses it for\nhttps:\n\n  [url \"persistent-https://\"]\n    insteadof = https://\n"}]}