Hi, As the error message says, you are missing the changeid field from your git commit messages. Changeid is used by gerrit to track the patches.
You have to copy a special git hook to your code tree as the message says: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]<mailto:[email protected]>:hooks/commit-msg ${gitdir}/hooks/ After this git will automatically insert a changeid into your commits. Now if you have already done your commits and don't have the changeid, you have to rebase (and rewrite) your commits to get the changeid in. git log: your commit 3 your commit 2 your commit 1 HEAD (rebase -i to this sha1) then in editor: pick HEAD r your commit 1 (change pick in all your commits to r, reword) r your commit 2 r your commit3 Then just leave your commit messages as they are, git should insert the changeid to your commits (because of reword,r) Then you should be able to push to gerrit. br, Jaska P.S. There might be some other way to achieve this, but this is how I myself often do it. ________________________________________ From: Dev [[email protected]] on behalf of 황희선 [[email protected]] Sent: Thursday, September 11, 2014 3:28 AM To: [email protected] Subject: [Dev] I faced an issue while contributing the source code to tizen. I need help Hi, I am now making the js validator based on the tizen web app checker. I have found some issues and i fixed them. So, I want to push the code. but I faced below error. I was googling for 2 days and i applied their solution. but i can't solve the problem. please help me if there is anyone who has faced same problem tta@ubuntu:~/prj/web-app-checker/web/src$<mailto:tta@ubuntu:~/prj/web-app-checker/web/src$> git push origin HEAD:refs/for/tizen Counting objects: 31, done. Compressing objects: 100% (8/8), done. Writing objects: 100% (10/10), 1.29 KiB | 0 bytes/s, done. Total 10 (delta 7), reused 0 (delta 0) remote: Resolving deltas: 100% (7/7) remote: remote: Processing changes: refs: 1, done remote: ERROR: missing Change-Id in commit message footer remote: Suggestion for commit message: remote: [report for package config] fix a bug for searching the line number which an error occured remote: In our project, we added some elements which it is possible to be added multiple time in the config file with other property value. remote: but now the function checks whether there are some property and value, or not. As a result, the function returns incorrect line number. remote: so I give al l the properties and value as the parameter of the function and check the sequence of them. remote: remote: Change-Id: I226898ce3ec023db9fc5f1153b38dda254762e21 remote: remote: Hint: To automatically insert Change-Id, install the hook: remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]<mailto:[email protected]>:hooks/commit-msg ${gitdir}/hooks/ remote: remote: To ssh://[email protected]:29418/sdk/tools/web-app-checker.git ! [remote rejected] HEAD -> refs/for/tizen (missing Change-Id in commit message footer) error: failed to push some refs to 'ssh://[email protected]:29418/sdk/tools/web-app-checker.git' --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
