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

Re: "Cannot fetch git.git" (worktrees at fault? or origin/HEAD) ?

From
Stefan Beller <sbeller@google.com>
Date
Oct 20, 2017, 05:27 UTC
Message-ID
<CAGZ79kZc+O9gM97bVZETE3sgkmc-t78Nf_Hq6=K4Gf2yaE79zA@mail.gmail.com>
In-Reply-To
<20171020031630.44zvzh3d2vlhglv4@sigill.intra.peff.net>
On Thu, Oct 19, 2017 at 8:16 PM, Jeff King <peff@peff.net> wrote:
> On Thu, Oct 19, 2017 at 06:43:57PM -0700, Stefan Beller wrote:
>
> So that's the right immediate workaround (and hoping there was nothing
> valuable in that worktree!).
How would I know? ;)

Without the commit available I do not even know if the code there is well reasoned about. (My commit messages usually tell my future self how much thought I put into the code)

Show 5 quoted lines
>
>> Any idea which direction we need to heading for a real fix?
>
> If my analysis above is correct, then it's already fixed. You just had
> leftover corruption.

Well fetching yesterday worked and the commit in question is from 8/23, the merge 8a044c7f1d56cef657be342e40de0795d688e882 occurred 9/18, so I suspect there is something else at play. (I do not remember having a gc between yesterday and today. Though maybe one in the background?)

I am curious how you can have a worktree owned by multiple repositories [1] (?).

Thanks, Stefan

Previous: Jeff KingNext: Jeff King
Message 3 of 11 in “"Cannot fetch git.git" (worktrees at fault? or origin/HEAD) ?”
  1. Stefan BellerOct 20, 2017
  2. Jeff KingOct 20, 2017
  3. Stefan BellerOct 20, 2017
  4. Jeff KingOct 20, 2017
  5. Stefan BellerOct 20, 2017
  6. Kaartic SivaraamOct 22, 2017
  7. Jeff KingOct 23, 2017
  8. Stefan BellerOct 23, 2017
  9. Kaartic SivaraamNov 3, 2017
  10. Stefan BellerNov 3, 2017
  11. Kaartic SivaraamNov 7, 2017

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.