Hi Shawn,I ran into a similar issue today. A user requested I create new project in gerrit. I used gerrit create-project as well they specified the branch name to use. However, they said the branch name is incorrect.When viewing git repo in gerrit UI, the default branch name does not have any option (checkbox) to delete.I can create a new branch I suppose, but is there a way to change this "default" un-checkable branch name by either:1. Deleting it?2. Renaming it?
On Wednesday, October 30, 2013 11:58:07 PM UTC-7, Shawn Pearce wrote:On Wed, Oct 30, 2013 at 6:17 PM, SamT <sam...@gmail.com> wrote:
> Is there any way to rename a Git branch in a repository managed by Gerrit?
> The only options available for branch management in Gerrit as of version 2.3
> are "Delete" and "Create Branch".
Correct, you can only do a rename by create new name, delete old name.
> I thought of two options and both of which are possibly doable but a bit
> cumbersome:
> 1) I could create a new branch from the tip of an existing branch using
> Gerrit but I think the old branch must still exist and can not be removed.
> So, the old branch name will still stay there in the repository.
After you create the new name you can delete the old name.
> 2) I have to go to the central repository and rename the branch using Git
> itself but I must also create the new branch and recreate all the access
> controls for this new branch name in Gerrit as well.
Yes, unfortunately you need to go edit access controls by hand.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
git symbolic-ref HEAD refs/heads/newBranch