Deploy to Heroku via circleci/heroku Orb fails with "fatal: protocol error"

When deploying to Heroku with the circleci/heroku Orb, builds can fail with the error message:

fatal: protocol error: bad line length character: fata
error: error in sideband demultiplexer

This can be resolved by manually resetting the Git repository on Heroku.

With the Heroku CLI client, install the heroku-repo plugin and clear the repository on Heroku. Then push a fresh empty commit to Heroku.

heroku plugins:install heroku-repo
heroku repo:reset -a example-app
git commit --allow-empty -m "Reset Heroku Repository"
git push heroku master
git push origin master

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.