Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: RPC failed; result=22, HTTP code = 400

Tags:

github

heroku

I am trying to push my app on to Heroku, but I am getting this error message. I have looked around, someone mentioned about GitHub recently started redirecting http repository access to https and it appears your git is unhappy about this change. But I am having troubles pushing to heroku, any help will be much appreciated.

 error: RPC failed; result=22, HTTP code = 400
like image 808
Matthew W. Avatar asked Oct 18 '13 12:10

Matthew W.


1 Answers

This may occur due the reason that Heroku's Git doesn't understand shallow clone as mentioned here.

Workaround is to disable shallow clone before deployment.

git fetch --unshallow
like image 85
Pekka Avatar answered Oct 01 '22 15:10

Pekka