Git pre-receive hook rejected with geroku

I got involved in a hero. I am deploying a Wordpress PHP application and basically had a whole bunch of git repositories in the theme directory, as well as a parent theme that I cloned from a github project. I successfully deployed Wordpress, but git ignored themes that were already tracked in their separate repositories, so I went back and copied the themes to another directory so that they were not tracked and deleted the .git folders.

My problem is that after that Heroku will not let me do it git push heroku master, but will throw this error message:

Writing objects: 100% (972/972), 2.73 MiB | 76 KiB/s, done.
Total 972 (delta 46), reused 0 (delta 0)


 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To git@heroku.com:....git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:....git'

I tried git pull heroku master, which gives me "Already updated". I also tried to add a flag -f, but that won't work either. Sometimes rejects the application in Heroku.

Any ideas?

EDIT:

: git @heroku.com: myapp.git

heroku/master, . .

+5

All Articles