| Issue 1156: | Ability to create branches from the command line | |
| 7 people starred this issue and may be notified of changes. | Back to list |
It would be useful to be able to create branches from the command-line, ideally by pushing. For example, with a standard Git repo I can create a branch by doing: git push origin HEAD:some-new-branch What I really want to be able to do with Gerrit is: git push origin HEAD:refs/for/some-new-branch and have the new branch created once the pushed code passes review. As far as I can tell, the current permissions model can't allow this to work, because giving someone permission to create a reference is enough to allow them to push a bunch of commits to it at the same time, bypassing review, which isn't what we want. I found a couple of threads where Shawn explained that the concern was that people might create misnamed branches due to typos, but it seems that typing a branch name into the Gerrit web UI is also susceptible to typos. If creation via pushing is not an option, creation via the Gerrit's SSH command line would be an acceptable alternative.
Jan 5, 2012
#1
florian....@gmail.com
Dec 13, 2013
(No comment was entered for this change.)
Status:
Submitted
Labels: FixedIn-2.9
Dec 14, 2013
Thanks for this, and to Mani Chandel who wrote the patch (https://gerrit-review.googlesource.com/52500).
Jul 4, 2014
Trantamdong2009
Jul 18, 2014
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |