Hi there!
Shouldn't it work if you cherry-pick the change and then remove the Change-ID line(with a git commit --amend), thus generating a new Change-ID line?
That gives Gerrit the signal to make a new change for review when pushed to the second branch.
--
Best regards,
Fredrik Luthander
Sony Ericsson Mobile Communications AB
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Like Fredrik said, I don't think this is actually a bug. A Change-Id
line indicates that this patch set belongs to a change in Gerrit, and
the change it is pointing at has already been merged. You need to
switch to a new change-id if you are uploading a new Gerrit change.
On Aug 31, 2:22 pm, Johan Björk <p...@spotify.com> wrote:
> On Wed, Aug 31, 2011 at 8:11 PM, Brad Larson <bklar...@gmail.com> wrote:Is there a reason your developers can't 'git commit --amend' and
> > Like Fredrik said, I don't think this is actually a bug. A Change-Id
> > line indicates that this patch set belongs to a change in Gerrit, and
> > the change it is pointing at has already been merged. You need to
> > switch to a new change-id if you are uploading a new Gerrit change.
>
> > Well, maybe it's not a bug, but it doesn't allow for our workflow.
>
> We have a few "important" branches where we require codereview. For other
> branches, developers are free to collaborate and do what they want.
> We may, or may not, set a change id in the commits that go directly into a
> "private" branch, (but gerrit will autoassign one).
> *the change has never shown up in the web-ui*
> When the developer is ready to submit it to one of the "important" branches
> (which might be the first and only commit), they are
> 1) unable to push to refs/heads/<important branch> because the policy don't
> allow them to do direct pushes
> 2) can't push it to review because gerrit will say there are no changes.
remove the Change-Id line from the commit message? Then everything
will work fine.