My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1156: Ability to create branches from the command line
7 people starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Dec 2013


Sign in to add a comment
 
Reported by greg.hur...@causes.com, Oct 22, 2011
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
That would be highly appreciateable
Dec 13, 2013
#2 sop@google.com
(No comment was entered for this change.)
Status: Submitted
Labels: FixedIn-2.9
Dec 14, 2013
#3 greg.hur...@causes.com
Thanks for this, and to Mani Chandel who wrote the patch (https://gerrit-review.googlesource.com/52500).
Jul 4, 2014
#4 nguyenva...@gmail.com
Trantamdong2009
Jul 18, 2014
Project Member #5 edwin.ke...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting