Injecting circleci into hero failed on git push

I just created a new project to deploy to heroku from circleci. I have a build script like this:

git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master

      

In the console from my circleci build, I see the following:

remote: Verifying deploy... done.
To git@heroku.com:socialjusticebingo.git
 ! [remote rejected] ca5c72a28f7ca9c793becd122e6bc73bf8f34b44 -> master (missing necessary objects)

      

+3


source to share


1 answer


Apparently this issue is related to shallow clones. I managed to overcome the problem by changing my deploy script as follows:



git fetch origin --unshallow
git push git@heroku.com:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master

      

+12


source







All Articles