Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone fails with git 2.11 #7165

Closed
filippog opened this issue Aug 16, 2017 · 3 comments
Closed

clone fails with git 2.11 #7165

filippog opened this issue Aug 16, 2017 · 3 comments

Comments

@filippog
Copy link
Contributor

See also mislav/hub#1404 for a similar issue, though using --config transfer.fsckObjects=false doesn't work for me and using --depth 1 does (I'm on Debian Stretch)

$ git clone https://github.com/librenms/librenms.git
Cloning into 'librenms'...
remote: Counting objects: 116080, done.
remote: Compressing objects: 100% (20/20), done.
error: object 357a0c3d41f40d1050a23c8a251e23aa37f4bbf6: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed
$ echo $?
128
$ git clone --config transfer.fsckObjects=false  https://github.com/librenms/librenms.gitCloning into 'librenms'...
remote: Counting objects: 116080, done.
remote: Compressing objects: 100% (20/20), done.
error: object 357a0c3d41f40d1050a23c8a251e23aa37f4bbf6: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed
$ git clone --config transfer.fsckObjects=false --config fsck.zeropaddedfilemode=ignore https://github.com/librenms/librenms.git
Cloning into 'librenms'...
remote: Counting objects: 116080, done.
remote: Compressing objects: 100% (20/20), done.
error: object 357a0c3d41f40d1050a23c8a251e23aa37f4bbf6: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed
$ git clone --depth 1 https://github.com/librenms/librenms.git
Cloning into 'librenms'...
remote: Counting objects: 12391, done.
remote: Compressing objects: 100% (10116/10116), done.
remote: Total 12391 (delta 2430), reused 8948 (delta 1886), pack-reused 0
Receiving objects: 100% (12391/12391), 58.18 MiB | 6.14 MiB/s, done.
Resolving deltas: 100% (2430/2430), done.
$ git version
git version 2.11.0
@filippog
Copy link
Contributor Author

FYI I found the culprit, Debian defaults to fsckobjects=true for transfer/receive/fetch, thus the following works:

git clone --config transfer.fsckobjects=false \
     --config receive.fsckobjects=false \
     --config fetch.fsckobjects=false \
https://github.com/librenms/librenms.git

In case you'd like to add it to known gotchas in CONTRIBUTING or sth like that.

@laf
Copy link
Member

laf commented Aug 16, 2017

Thanks, other than us rewriting git history we can't do anything about this. Closing as this is now searchable for others.

@laf laf closed this as completed Aug 16, 2017
@lock
Copy link

lock bot commented May 16, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed.

@lock lock bot locked as resolved and limited conversation to collaborators May 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants