Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343649

Summary: eGit wont push to a remote respoitory. Internal exception error occuring, hook declined.
Product: [Technology] EGit Reporter: Alex Bunting <alex.bunting>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3 CC: matthias.sohn, robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Alex Bunting CLA 2011-04-22 07:19:02 EDT
Build Identifier: 20110301-1815

An internal Exception occured during push: https://myusername@gitent-scm.com/git/myrepo/mydomain.git unexpected report line: error refs/heads/master *** PERMISSION DENIED *** hook declined

I get this error when I try to push - I have set up all the correct username and password details, the URI is correct. I have even modified the config file (as this worked to fix it in a previous version of git) to manually add a url and pushurl, but it doesnt push and instead gives me that error.

I have tried with SSH and HTTPS. Followed all the tutorials and tried all the bugfixes and workarounds I could find but alas it doesnt work -> concluding a bug.

Reproducible: Always

Steps to Reproduce:
1. Set up a project as a repo as normal
2. Config file -> add a [remote "origin"] bit with the url and pushurl the same as one another and a link to your repo
3. Push as normal - error given.
Comment 1 Robin Stocker CLA 2011-05-14 05:38:08 EDT
Does push work using the command-line git?
Comment 2 Matthias Sohn CLA 2011-05-15 17:59:51 EDT
This looks like the other end has some hook installed doing permission checking and it seems you don't have the necessary permissions.
Comment 3 Matthias Sohn CLA 2011-10-09 18:01:45 EDT
EGit doesn't support hooks hence this error message can only come from a hook installed in the remote repository you are trying to push to and this hook says that you don't have some permission. Hence you need to ask the owner of this remote repository what hook prevents you from pushing and how you could gain the missing permission.