| Issue 317: | error message when pushing to refs/heads/branch vague | |
| 19 people starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.0.24 What steps will reproduce the problem? 1. git push ssh://review.example.com:29418/project.git master What is the expected output? What do you see instead? git push client says: ! [remote rejected] master -> master (prohibited by Gerrit) Unless the user has Push >= +1 granted to them. This message doesn't tell the user how to correct their command line to do what they wanted, which was to post a new change for review. We should either print a better error message, or have better DWIMery rules here and simply create/update the changes even through the user has pushed to refs/heads/master and not refs/for/master. Using DWIMery does worry me when/if the user ever gets Push >= +1, as then a push to refs/heads/master would behave differently than it had in the past.
Nov 4, 2009
#1
sop+code@google.com
Summary:
error message when pushing to refs/heads/branch vague
Aug 31, 2011
Better error messages in general would be great. I understand why you would want "No such repository" if you don't have access , but if you have read access, it should be verbose.
Sep 3, 2011
How do I push the changes to different branch I have created one Project ssh -p 29418 rampatnaik@107.108.205.104 gerrit create-project -n ram-test in client pc I have created one folder and created few files . then git init git add file.c git commit git remote add origin ssh://107.108.205.104/ram-test git push origin master:refs/heads/ICS-Android ! [remote rejected] master -> ICS-Android (prohibited by Gerrit) git push origin master:refs/for/ICS-Android ! [remote rejected] master -> refs/for/ICS-Android (branch ICS-Android not found) git push origin HEAD:refs/heads/ICS-Android ! [remote rejected] HEAD -> ICS-Android (prohibited by Gerrit) git push origin HEAD:refs/for/ICS-Android ! [remote rejected] HEAD -> refs/for/ICS-Android (branch ICS-Android not found) git push origin HEAD:refs/heads/master ! [remote rejected] HEAD -> master (prohibited by Gerrit) How do I push the changes to different branch
Oct 8, 2013
Can you run this command before push : git pull |
|
| ► Sign in to add a comment |