From: Ævar Arnfjörð Bjarmason Date: Fri, 25 May 2018 07:36:28 GMT Subject: Re: BUG: No way to set fsck. when cloning Message-ID: <87o9h46vb7.fsf@evledraar.gmail.com> In-Reply-To: <3e4f0b82-b67a-24d2-c89e-efbe9ee45dd4@virtuell-zuhause.de> On Thu, May 24 2018, Thomas Braun wrote: > Am 24.05.2018 um 17:25 schrieb Ævar Arnfjörð Bjarmason: >> When I do: >> >> git -c fetch.fsckObjects=true clone git@github.com:robbyrussell/oh-my-zsh.git >> >> I get: >> >> error: object 2b7227859263b6aabcc28355b0b994995b7148b6: zeroPaddedFilemode: contains zero-padded file modes >> fatal: Error in object >> fatal: index-pack failed >> >> [...] > > Doing > > git clone --config transfer.fsckobjects=false --config > receive.fsckobjects=false --config fetch.fsckobjects=false > git@github.com:robbyrussell/oh-my-zsh.git > > does the trick here (stolen from [1]). > > $ git --version > git version 2.17.0.windows.1 > > I don't know why though. Yeah, because it entirely turns off fsck on fetch, and we didn't have any way to selectively disable just some stuff until the patch series I just sent (https://public-inbox.org/git/20180524193516.28713-1-avarab@gmail.com/) > [1]: > https://github.com/michaeljones/breathe/issues/340#issuecomment-390775142