Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git, Heroku: pre-receive hook declined

I am in the process of setting up a git repository and attempting to link it to Heroku. When I run the command

git push heroku master 

I receive

Counting objects: 7, done. Delta compression using up to 2 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (7/7), 714 bytes, done. Total 7 (delta 1), reused 0 (delta 0)  -----> Heroku receiving push   !     Heroku push rejected due to an unrecognized error.  !     We've been notified, see http://support.heroku.com if the problem persists.   To [email protected]:morning-stream-3712.git  ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '[email protected]:morning-stream-3712.git' 

I'm not quite sure what other information would be helpful and what will just muddy the waters, so I'll just leave it at this for now. Any help getting my application pushed to Heroku would be greatly appreciated. Thanks.

like image 746
wuliwong Avatar asked Nov 21 '11 18:11

wuliwong


People also ask

What is pre receive Hook declined in Git?

Your commits were rejected by the pre-receive hook of that repo (that's a user-configurable script that is intended to analyze incoming commits and decide if they are good enough to be accepted into the repo). It is also a good idea to ask that person to update the hook, so it would print the reasons for the rejection.


1 Answers

Make sure you are pushing a repo that contains a proper supported app ( Rails, Django etc.) and you are not just pushing some random repo to test it out.

Newbie in Heroku: Error when push my app to Heroku

If that is not the case and you are pushing what you think is a valid app, contact Heroku support and they will fix it for you.

like image 121
manojlds Avatar answered Sep 16 '22 14:09

manojlds