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

Re: [BUG] Destructive access to an "objects/info/alternates" repository

From
SMStefan Monnier <monnier@iro.umontreal.ca>
Date
Jan 3, 2021, 16:50 UTC
Message-ID
<jwv1rf26k9n.fsf-monnier+gmane.comp.version-control.git@gnu.org>
In-Reply-To
<20201229154403.xutnk2aoawdrjfwx@chatter.i7.local>
Show 11 quoted lines
>> FWIW, I just tried it with
>> 
>>     git clone --shared ~otheruser/nongnu
>> 
>> and got the same result.
>> I also tried with another repository, still with the same result (tho
>> different pack.idx names, of course).
>
> I've tried several times to reproduce this, but I am unable to do so. You may
> need to provide the tarball with ~otheruser/nongnu contents for someone to be
> able to properly debug this.
OK, you can try with the following tarball:
    https://www.iro.umontreal.ca/~monnier/nongnu.tar.gz

untar it (as "otheruser") into ~otheruser (which will create ~otheruser/nongnu) and then do (as your normal user):

    git clone --shared ~otheruser/nongnu
    cd nongnu
    git gc

It "worked" (i.e. gave me the unlink failure warnings) for me, so hopefully it will "work" for others as well.

The `git clone` will likely give you some message about HEAD not being found, which is normal.

        Stefan
Previous: Konstantin RyabitsevNext: Konstantin Ryabitsev
Message 6 of 9 in “[BUG] Destructive access to an "objects/info/alternates" repository”
  1. Stefan MonnierDec 28, 2020
  2. Konstantin RyabitsevDec 28, 2020
  3. Stefan MonnierDec 28, 2020
  4. Stefan MonnierDec 28, 2020
  5. Konstantin RyabitsevDec 29, 2020
  6. Stefan MonnierJan 3, 2021
  7. Konstantin RyabitsevJan 4, 2021
  8. Stefan MonnierJan 4, 2021
  9. Konstantin RyabitsevJan 4, 2021

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.