Skip to content

git clone fails with zeroPaddedFilemode error #367

@akalin

Description

@akalin

When I do a git clone I get:

> git clone https://github.com/defunkt/coffee-mode.git
Cloning into 'coffee-mode'...
remote: Counting objects: 1828, done.
error: object 2699d230e3b592ae42506d7b5c969a7ac6a4593c: zeroPaddedFilemode: contains zero-padded file modes
fatal: Error in object
fatal: index-pack failed

There's a workaround described here ( mislav/hub#1404 ) but it's probably better to fix the underlying problem, as described on: https://stackoverflow.com/questions/14700502/how-to-fix-git-zero-padded-file-modes-warning/14839059#14839059

I did the fix with an existing local repository and pushed it to my fork: https://github.com/akalin/coffee-mode . The downside is that it changes a lot of refs, though.

NB: I had to create an empty repo instead of forking, as simply forking and the re-pushing left the old (corrupt) commits in place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions