Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify commit message on gerrit after patchset creation?

Tags:

git

gerrit

So what I am trying to do is: Add the url, for example (https://gerrit-server/#/c/7456/) into the commit message appearing on gerrit.

What I have tried so far is create a file patchset-created under gerrit_site/hooks/ wich is launched when I push a change.

The problem is that i can't locate the commit message file, so i can modify it's content.

I figured since I am trying to insert the url into the commit message, I can t do this by using a hook on my local git repository because there is no way to know what url it is going to be associated to on gerrit, so i thought it may be done by using a hook on gerrit side.

Would appreciate any feed back.

like image 985
Ezwig Avatar asked Jan 23 '17 15:01

Ezwig


1 Answers

You can modifiy the commit message from gerrit UI directly. Just open the commit message on gerrit and click on the edit button next to patch-sets on the above. Do any change and then save it. You will need to submit you new commit message afterwards, appearing just above the owner section on the commit page.

like image 176
caneru Avatar answered Oct 12 '22 22:10

caneru