I have some issues with pushing to Heroku. When ever I try to push my application I get the error fatal: unable to read {sha1 value}.
The stacktrace is as following:
git push heroku master
Counting objects: 2066, done.
error: unable to find {sha1 value}
Delta compression using up to 4 threads.
Compressing objects: 100% (1954/1954), done.
fatal: unable to read {sha1 value}
I don’t have any issues pushing to GitHub, so I don’t know if I might have corrupted something in my Heroku application?
Check what
git fsckreturns, and see if you can copy the missing git object directly in the.git/objectson the heroku server.That would be similar to the approach taken in “What can I do with Git corruption due to a missing object?“.