https://bugzilla.wikimedia.org/show_bug.cgi?id=40649

Dereckson <dereck...@espace-win.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dereck...@espace-win.org

--- Comment #2 from Dereckson <dereck...@espace-win.org> 2012-10-01 07:51:44 
UTC ---
Gerrit change 25856

(if you need to get it and improve it, use gerrit -d 25856)

______________________

The first time you clone a repository, you can use git review -s to add git
review and Gerrit specific hooks. One of them will add the last git Change-Id
to the commit message.

If you commit stuff before the git review -s, then launch git review, it will
do that for you (Creating a git remote called "gerrit" that maps to:
ssh://<your
username>@gerrit.wikimedia.org:29418/mediawiki/extensions/AntiSpoof.git).

But it won't edit your commit message, so Gerrit will reject it with this
message:
remote: ERROR: missing Change-Id in commit message

It will even suggest you a commit message (your commit message + the
Change-Id).

(...)
remote: Change-Id: I98e4bc5aa0034369910effda73625ce8b03288be


What you have to do is:
(1) copy/paste this line (without the remote: )
(2) git commit --amend
(3) add this line to your commit message
(4) git review

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to