I just set up a new project to deploy to heroku from circleci. I have my build script as follows:
git push [email protected]:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master
In the console from my circleci build I see the following:
remote: Verifying deploy... done.
To [email protected]:socialjusticebingo.git
! [remote rejected] ca5c72a28f7ca9c793becd122e6bc73bf8f34b44 -> master (missing necessary objects)
Apparently this issue is related to shallow clones. I was able to get past the issue by altering my deployment script to read as follows:
git fetch origin --unshallow
git push [email protected]:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With