| Issue 2441: | Branch creation with new commits prohibited | |
| 1 person starred this issue and may be notified of changes. | Back to list |
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! *****
************************************************************
Affected Version:
2.8.1
Error description
=================
If a user has the right to push and create references on refs/heads/*, and tries to push a branch with a new commit, Gerrit answers with "prohibited by Gerrit". If the branch is created by copying another branch, and the commit is pushed separately, Gerrit will accept the commit.
Impact
======
Branches can not be created with a new commit which is not on other branches already.
Steps to reproduce
==================
1. Check out an existing branch, e.g. 'master'
2. Locally create a new branch with the initial commit of 'master', e.g. 'testbranch'
3. Create a new commit on that branch
4. Try to push that commit to Gerrit, Gerrit answers with
! [remote rejected] testbranch -> testbranch (prohibited by Gerrit)
5. Create the new branch by pushing the revision of the master branch, e.g.
git push origin master:refs/heads/testbranch
6. Push new commit on testbranch
git push origin testbranch
7. Gerrit will accept the new commit, although it was rejected in step 4.
Expected behavior
=================
Branch should be created without error message.
Jan 30, 2014
Project Member
#1
david.pu...@sonymobile.com
Status:
ChangeUnderReview
Mar 13, 2014
(No comment was entered for this change.)
Status:
Released
Labels: FixedIn-2.8.2
Aug 20, 2014
refer https://gerrit-review.googlesource.com/#/c/59020/ |
|
| ► Sign in to add a comment |