The user must have Forge Identity +3 to run it, if I'm not wrong.
Try to add that permission to the Administrators group and you'll be good.
Luciano.
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Lazo Apostolovski <lapost...@tricode.nl>编写:
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
HiI try to integrate trivial_rebase.py script for patchset-created hook on gerrit, and I have a couple of problems with that.I created separate new user on gerrit for this and I gives him admin rights (its in Administrators group).At first when I upload new patch sets suexec command is executed withTraceback (most recent call last):(['ssh', '-l', 'Gerrit Code Review', '-p', '29418', 'localhost', '-i', '/home/qbox/.ssh/id_rsa', 'suexec', '--as', u'myemail...@gmail.com', '--', u"gerrit approve --project testproject --message 'Automatically re-added by Gerrit trivial rebase detection script.' --code-review 1 526930264d146823f62be809dfa3c02a215b39cd"]I see in gerrit sshd_log that user try to log with "Gerrit Code Review" username. I change this with appropriate username and try again. I do some comments on previous patch set and set code review on +1. I do some changes, rebase and push it again. New patch set was created but my commit messages has not been copied. I see in error.log and I see this message:
File "/home/qbox/gerrit/Dzjinn/hooks/trivial_rebase.py", line 226, in <module>Main()File "/home/qbox/gerrit/Dzjinn/hooks/trivial_rebase.py", line 222, in Main' '.join(gerrit_approve_cmd))File "/home/qbox/gerrit/Dzjinn/hooks/trivial_rebase.py", line 127, in SuExecCheckCall(suexec_cmd)File "/home/qbox/gerrit/Dzjinn/hooks/trivial_rebase.py", line 63, in CheckCallraise CheckCallError(command, cwd, process.returncode, std_out, std_err)
__main__.CheckCallError: (['ssh', '-l', 'appropriateusername', '-p', '29418', 'localhost', '-i', '/home/qbox/.ssh/id_rsa', 'suexec', '--as', u'my...@gmail.com', '--', u"gerrit approve --project testproject --code-review 1 5ac66c3e58ad14e76afdae6b0be9afb2e69fad64 --message 'Automatically re-added by Gerrit trivial rebase detection script.'"], None, 1, '', None)any suggestions?Thank you.
Note that the trivial_rebase script has been refactored quite a lot [1] in the 2.6 release.
--
--
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/groups/opt_out.