missing Change-Id in commit message footer during push to gerrit

629 views
Skip to first unread message

djph29

unread,
Apr 15, 2016, 9:47:00 AM4/15/16
to Repo and Gerrit Discussion
Hi,

Here is my configuration;


on the server:

os: Red Hat Enterprise Linux Server release 6.7 (Santiago)

git 2.7.1 

gerrit 2.12.2 

on the client:

Rational Application Developer v9.0
Egit v4.2
Mylin Reviews Connector: Gerrit v2.9

When I try to push a change to gerrit ("Push upstream") , it fails with the missing change id error message.

I did some googling, and installed the commit-msg hook in the .git/hooks directory of the local repo.

The change id is there in the commit message, but there is a bunch of comments added by the (mylin client I guess) after that.

Please advise. Thanks in advance.



Saša Živkov

unread,
Apr 18, 2016, 11:23:02 AM4/18/16
to djph29, Repo and Gerrit Discussion
Change-Id must be in the last paragraph of the commit message.
 



--
--
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.

djph29

unread,
Apr 18, 2016, 2:55:55 PM4/18/16
to Repo and Gerrit Discussion, desh...@gmail.com
I tried several variations (change id is the last line, change id is the only line) to no avail.

Marcelo Ávila de Oliveira

unread,
Apr 18, 2016, 3:07:51 PM4/18/16
to djph29, Repo and Gerrit Discussion
Are you sure you have just one new commit? All new commits need to have the Change-Id (Gerrit will create one change for each new commit).

--
Marcelo Ávila de Oliveira

djph29

unread,
Apr 18, 2016, 3:57:14 PM4/18/16
to Repo and Gerrit Discussion, desh...@gmail.com
I did this as well. Temporarily removed the change id requirement, committed all  all outstanding changes. Then created a new change, and tried to commit.Got the same results. After I do an edit using "git commit --amend" , do a " git push origin HEAD:refs/for/master", it fails, then if I do another "git commit -- amend", the message that comes up is not the one I edited. I thought "git commit --amend" will show the last attempted commit message.

djph29

unread,
Apr 19, 2016, 9:51:36 AM4/19/16
to Repo and Gerrit Discussion, desh...@gmail.com
The issue is solved now. In addition to the change id line, another line is required above it.
Reply all
Reply to author
Forward
0 new messages