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 fails due to zero-padded file modes #1305
Comments
I just tried it and it did work.
|
What version of |
(just tried again, still the same issue) |
In my
When I change this to
In case one of the maintainers is interested in fixing this, maybe this contains some hints: |
Yes, it is showing as corrupt for me as well. Why does |
fsck my life |
Looks like this was first encountered in #532 (2012!). I was able to fix it by following the steps in this StackOverflow answer. However, this ends up rewriting a huge chunk of the repo's history, since the broken SHAs are pretty old. I also had to convert a bunch of signed tags to unsigned, because of the SHA changes. Here's the updated repository: https://github.com/rohitpaulk/sinatra-gitfsck The steps I took were:
git fast-export --all --signed-tags=warn-strip | (cd ../new-sinatra && git fast-import) Other instances of this in the wild:
One possible cause for this bug is in Grit, that was fixed a long time ago. |
Additional instances of this in the wild:
Seeing there hasn't been any activity in this issue since Oct 2017, I guess the issue isn't affecting that many Sinatra users? I think Sinatra too should address it with documentation instead of rewriting the git history. |
I agree, and going to close this ticket until someone can introduce a solution that doesn't involve rewriting the entire git history (including signed commits). |
I tried to clone the project but it does always fails. There seems to be an issue with the integrity of the git repo.
I also tried forking it (worked) and then cloning it (same issue).
The text was updated successfully, but these errors were encountered: