git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] Cloning with git HEAD fails for some repositories

From
Heinrich Schuchardt <xypron.glpk@gmx.de>
Date
Mar 22, 2019, 17:42 UTC
Message-ID
<3d8e8de3-9ae6-94be-7739-cb8ea79b228e@gmx.de>
In-Reply-To
<20190322165034.GA23124@dcvr>
On 3/22/19 5:50 PM, Eric Wong wrote:
Show 29 quoted lines
> Jeff King <peff@peff.net> wrote:
>> On Fri, Mar 22, 2019 at 09:21:14AM +0100, Wolfgang Denk wrote:
>>
>>> Dear Jeff,
>>>
>>> In message <20190322071231.GA26114@sigill.intra.peff.net> you wrote:
>>>>
>>>> However, so does the parent of 17966c0a63d. So I don't know if the
>>>> u-boot-efi repo is just broken, or if there's some other different bug
>>>> at play.
>>>
>>> git fsck reports a number of dangling tags, but no other issues:
>>
>> Weird. I had set http.maxrequests to "1" to give more readable output
>> from GIT_CURL_VERBOSE, etc. It fails with that setting, but not with the
>> default of 5. Which certainly seems like a bug, but one that has been
>> there for a while (at least since v2.9.x, which I tested).
>
> I couldn't reproduce an error after porting your patch to
> master (commit 041f5ea1cf987a40 "The third batch"):
> https://80x24.org/spew/20190322163449.25362-1-e@80x24.org/raw
>
> So you might've hit an ephemeral error (bad connection,
> HTTP server restarting, etc).
>
> GIT_CURL_VERBOSE=1 git \
> 	-c http.maxRequests=1 -c http.followRedirects=true clone \
> 	http://git.denx.de/u-boot-efi.git
>
I applied the patch to https://github.com/git/git origin/HEAD.
But unfortunately it does not solve the issue:

$ git --version git version 2.21.0.197.g3845f293e6 $ git clone http://git.denx.de/u-boot-efi.git Cloning into 'u-boot-efi'... warning: alternate disabled by http.followRedirects: http://git.denx.de/u-boot.git/ error: Unable to find a00d15757d7a513e410f15f2f910cb52333361a3 under http://git.denx.de/u-boot-efi.git Cannot obtain needed object a00d15757d7a513e410f15f2f910cb52333361a3 error: fetch failed.

In Wireshark I see a lot of '404 Not found' codes.
Best regards
Heinrich
Previous: Eric WongNext: Eric Wong
Message 6 of 14 in “[BUG] Cloning with git HEAD fails for some repositories”
  1. Heinrich SchuchardtMar 22, 2019
  2. Jeff KingMar 22, 2019
  3. Wolfgang DenkMar 22, 2019
  4. Jeff KingMar 22, 2019
  5. Eric WongMar 22, 2019
  6. Heinrich SchuchardtMar 22, 2019
  7. Eric WongMar 22, 2019
  8. Heinrich SchuchardtMar 22, 2019
  9. Eric WongMar 22, 2019
  10. Jeff KingMar 23, 2019
  11. 0/3 fix dumb-http fetch with alternatesJeff King, Mar 24, 2019
  12. 1/3 http: factor out curl result code normalizationJeff King, Mar 24, 2019
  13. 2/3 http: normalize curl results for dumb loose and alternates fetchesJeff King, Mar 24, 2019
  14. 3/3 http: use normalize_curl_result() instead of manual conversionJeff King, Mar 24, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.