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

Re: [PATCH 0/11] Misc. pull/merge/am improvements

From
Junio C Hamano <junkio@cox.net>
Date
Dec 28, 2006, 11:04 UTC
Message-ID
<7vtzzguvrp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20061228084245.GA18150@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
Show 10 quoted lines
> Junio C Hamano <junkio@cox.net> wrote:
> ...
>> I am very tempted to have sliding window mmap() if it helps
>> people on cygwin, for example.
>
> Especially now that NO_MMAP is the default on that platform.
> At this point it may be ready to graduate to next to try and get a
> wider audience.  Since fixing that segfault in pack-objects I can't
> break it.  Of course I couldn't break it before you found that error,
> so take my words with a grain of salt... ;-)
Well, I have a bad news for you.

"ng refs/heads/master n/a (unpacker error)" is back. I cannot push things out.

But a bad news is that the problem does not decompose so easily; git-push has too many players involved. I _think_ I have the list of positive and negative objects fed to rev-list --objects --thin --stdin, whose output is in turn fed to pack-objects, but manually running these steps in isolation seems to produce an Ok result that index-pack --stdin --fix-thin accepts happily.

While I was looking at the problem, I noticed something a bit easier to reproduce and should be lot easier to diagnose. At http://userweb.kernel.org/~junio/broken.tar, I have a tarball of git.git repository.

When you extract it, you will have a directory "broken/" with a single directory ".git/" in it. The repository passes "fsck-objects --full" from master just fine.

However, if you try to "git repack -a -d" it using "next" plus "sp/mmap" with your latest fix ("pu" also has it), you will see:

        Generating pack...
        Done counting 32054 objects.
        fatal: internal error: pack revindex corrupt

In that sample repository, I have pack.window, and repack.deltabaseoffset. These settings do not seem to affect the breakage.

Previous: Shawn PearceNext: Shawn Pearce
Message 4 of 10 in “Misc. pull/merge/am improvements”
  1. 0/11 Misc. pull/merge/am improvementsShawn Pearce, Dec 28, 2006
  2. Junio C HamanoDec 28, 2006
  3. Shawn PearceDec 28, 2006
  4. Junio C HamanoDec 28, 2006
  5. Shawn PearceDec 29, 2006
  6. Junio C HamanoDec 29, 2006
  7. Shawn PearceDec 31, 2006
  8. Junio C HamanoDec 30, 2006
  9. Johannes SchindelinDec 29, 2006
  10. Junio C HamanoDec 29, 2006

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.