Reputation: 221
I am getting the error failed to push some refs, below
$ git push origin bob
Total 0 (delta 0), reused 0 (delta 0)
To git:/var/git/webservices.git
* [new branch] bob -> bob
error: failed to push some refs to 'git:/var/git/webservices.git'
Note: this has nothing to do with non-fast-forward pushes.
To try and rule it out I have set 777 permissions to the whole remote repo.
Any idea how to find what ref it can't push?
(to be clear it has pushed the new branch to the repo and this is a repo that was previously working fine)
Upvotes: 0
Views: 1227
Reputation: 221
Our problem was that setting 777 permissions to the repo added execute permissions and activated the sample hooks!
When this repo was created they did not use to have the .sample on the end. Very dangerous. :(
Upvotes: 2