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

Bug/feature request: Can’t disable fsck warnings during clone

From
KMKevin A. Mitchell <kam@kamit.com>
Date
Dec 28, 2017, 15:51 UTC
Message-ID
<CAF1p0HimkxVydxL3cfRXX0=oaBrmARzYqCbqiarWn1yvh+H-EA@mail.gmail.com>
Hi!

I’ve set transfer.fsckObjects to true globally, for safety. Unfortunately, this messed up my Spacevim install.

Doing some digging, I found that some of the repos had a warning. I can turn the warning off, but that only affects git fsck, not git clone. Turning off transfer.fsckObjects also fixes the problem. I’d rather have it on for my development work.

Tested with the “next” branch as well.

$ git -c transfer.fsckObjects=true -c fsck.zeroPaddedFilemode=ignore clone https://github.com/albfan/ag.vim Cloning into 'ag.vim'... remote: Counting objects: 1879, done. error: object 65e1a0027644b6625b32d30ba5ccf1c4d483480a: zeroPaddedFilemode: contains zero-padded file modes fatal: Error in object fatal: index-pack failed $ git —version git version 2.15.1.501.g29533fb16

but this works as expected:

$ git clone https://github.com/albfan/ag.vim Cloning into 'ag.vim'... remote: Counting objects: 1879, done. remote: Total 1879 (delta 0), reused 0 (delta 0), pack-reused 1879 Receiving objects: 100% (1879/1879), 1.23 MiB | 2.76 MiB/s, done. Resolving deltas: 100% (938/938), done. $ cd ag.vim $ git -c transfer.fsckObjects=true -c fsck.zeroPaddedFilemode=ignore fsck Checking object directories: 100% (256/256), done. Checking objects: 100% (1879/1879), done. $ git -c transfer.fsckObjects=true fsck Checking object directories: 100% (256/256), done. warning in tree 65e1a0027644b6625b32d30ba5ccf1c4d483480a: zeroPaddedFilemode: contains zero-padded file modes Checking objects: 100% (1879/1879), done.

It would be useful to be able to turn off individual warnings during cloning. Is there something I’m missing in the config? Or, is this something that could be fixed?

Thanks,
Kevin
-- 
Kevin A. Mitchell
http://www.kamit.com/
Next: Johannes Schindelin
Message 1 of 2 in “Bug/feature request: Can’t disable fsck warnings during clone”
  1. Kevin A. MitchellDec 28, 2017
  2. Johannes SchindelinJan 4, 2018

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.