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

Re: Zero padded file modes...

From
John Szakmeister <john@szakmeister.net>
Date
Sep 5, 2013, 17:13 UTC
Message-ID
<CAEBDL5UiEurFeZg1AuNUKEvBMDs3K3D5ZiF5rB-dYWjp5nvrEA@mail.gmail.com>
In-Reply-To
<20130905153646.GA12372@sigill.intra.peff.net>
On Thu, Sep 5, 2013 at 11:36 AM, Jeff King <peff@peff.net> wrote:
Show 17 quoted lines
> On Thu, Sep 05, 2013 at 10:00:39AM -0400, John Szakmeister wrote:
>
>> I went to clone a repository from GitHub today and discovered
>> something interesting:
>>
>>     :: git clone https://github.com/liebke/incanter.git
>>     Cloning into 'incanter'...
>>     remote: Counting objects: 10457, done.
>>     remote: Compressing objects: 100% (3018/3018), done.
>>     error: object 4946e1ba09ba5655202a7a5d81ae106b08411061:contains
>> zero-padded file modes
>>     fatal: Error in object
>>     fatal: index-pack failed
>
> Yep. These were mostly caused by a bug in Grit that is long-fixed.  But
> the objects remain in many histories. It would have painful to rewrite
> them back then, and it would be even more painful now.
I guess there's still the other side of the question though.  Are
these repositories busted in the sense that something no longer works?
 I doesn't appear to be the case, but I've not used it extensively say
I can't say for certain one way or another.  In the sense that the
content is not strictly compliant, transfer.fsckObjects did its job,
but I wonder if fsck needs to be a little more tolerant now (at least
with respect to transfer objects)?

I can certainly cope with the issue--it's not a problem for me to flip the flag on the command line. I think it'd be nice to have transer.fsckObjects be the default at some point, considering how little people run fsck otherwise and how long these sorts of issues go undiscovered. Issues like the above seem to stand in the way of that happening though.

-John
Previous: Jeff KingNext: Jeff King
Message 9 of 10 in “Zero padded file modes...”
  1. John SzakmeisterSep 5, 2013
  2. Jeff KingSep 5, 2013
  3. Duy NguyenSep 5, 2013
  4. Jeff KingSep 5, 2013
  5. Nicolas PitreSep 5, 2013
  6. A Large Angry SCMSep 5, 2013
  7. Nicolas PitreSep 5, 2013
  8. Jeff KingSep 5, 2013
  9. John SzakmeisterSep 5, 2013
  10. Jeff KingSep 5, 2013

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.