openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #03433
Re: [Gerrit] Getting "invalid author"
-
To:
Yuriy Taraday <yorik.sar@xxxxxxxxx>
-
From:
corvus@xxxxxxxxxxxx (James E. Blair)
-
Date:
Thu, 04 Aug 2011 13:53:22 -0700
-
Cc:
openstack@xxxxxxxxxxxxxxxxxxx
-
In-reply-to:
<CABocrW4zh3qcp-=aKRj_dHZAZd4NMBwv+K=Gf=gDNV2HqSgReA@mail.gmail.com> (Yuriy Taraday's message of "Thu, 4 Aug 2011 21:59:53 +0400")
-
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
Yuriy Taraday <yorik.sar@xxxxxxxxx> writes:
> I have series of commits that can be applied separately and can be treated
> as separate improvements in my branch.
> That commits were there before I knew that I should install Gerrit hook.
> Now I have bunch of commits without Change-Id while commit --amend works
> only with the last one. How can I edit previous commits?
One way to do that would be to make a new branch, and cherry-pick each
of the commits in order onto that branch, and after cherry-picking each,
run git commit --amend to cause the change-id hook to run.
If they are independent of each other, you might want to take the time
to rebase each one as you go. If not, that's fine, Gerrit will wait
till they are all approved before applying them.
Something like:
git checkout master
git checkout -b temp
git cherry-pick <oldest sha1 of patch series>
git commit --amend
git cherry-pick <2nd oldest sha1 of patch series>
git commit --amend
...
git cherry-pick <newest sha1 of patch series>
git commit --amend
git review
However, we turned on the requirement to have Change-Ids to _prevent_
problems, not _cause_ them. Since this isn't likely to happen again
(now that you have the change-id hook installed) feel free to find Monty
or I (mtaylor or jeblair) in IRC, and we can temporarily remove the
Change-Id requirement and then you can push your patches as they are.
-Jim
References