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

Cloning flask fails with Git config transfer.fsckobjects = true; repository broken? #2065

Closed
hartwork opened this issue Oct 26, 2016 · 2 comments

Comments

@hartwork
Copy link

Hi!

One of my machines has Git configured to fsck objects on transfer. On the Flask repository, it errors with:
error: object 0b404df8c030cdeaca7b373956c3a697efd32f78: zeroPaddedFilemode: contains zero-padded file modes.
Without fsck, cloning works fine.

To reproduce:

$ git clone https://github.com/pallets/flask.git
Cloning into 'flask'...
remote: Counting objects: 12684, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 12684 (delta 0), reused 0 (delta 0), pack-reused 12680
Receiving objects: 100% (12684/12684), 3.56 MiB | 4.44 MiB/s, done.
Resolving deltas: 100% (8794/8794), done.

$ rm -Rf flask/

$ git config --global transfer.fsckobjects true

$ cat ~/.gitconfig 
[transfer]
        fsckobjects = true

$ git clone https://github.com/pallets/flask.git
Cloning into 'flask'...
remote: Counting objects: 12684, done.
remote: Compressing objects: 100% (4/4), done.
error: object 0b404df8c030cdeaca7b373956c3a697efd32f78: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed

# git --version
git version 2.10.1

I'd be curious if you can reproduce it or if this is a bug in Git or something.

@davidism
Copy link
Member

#2029

@hartwork
Copy link
Author

I see, thanks.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
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