Gerrit try to configure trivial rebase

I want to enable trivial rebase on gerrit 2.9.1. I followed documentation and changed labels.

Here what I hava in MY_PROJECT.git/config:

  • GERRIT: ! HEAD -> refs/for/master (internal server error)
  • /.git/hooks/: No such file or directory protocol error: expected control record on Mac osx
  • git push origin HEAD:ref/for/master creates a new commit everytime instead of amending previous changes
  • What does “You are in the middle of an am session” mean?
  • How do I move a commit from master to a branch while preserving its Gerrit ID?
  • How to install and use gerrit with eclipse?
  • [label "Code-Review"]
        function = MaxWithBlock
        copyMinScore = true
        value = -2 Do not submit, I must review it !
        value = -1 I would prefer that you didn't submit this
        value =  0 No score
        value = +1 Looks good to me, but someone else must approve
        value = +2 Looks good to me, approved !
        copyAllScoresOnTrivialRebase = true
        copyAllScoresIfNoCodeChange = true
    

    I restart gerrit, and when I look at my interface, labels didn’t change and trivial rebase is not activated. Here’s what I have on my interface:

    Code-Review:
        +2 Looks good to me, approved
        +1 Looks good to me, but someone else must approve
        0 No score
        -1 I would prefer this is not merged as is
        -2 This shall not be merged
    

    Any idea why it’s not working ?

  • Using Git as a source control for webdevelopment and multiple environment
  • List stash apply conflicts in JGit
  • Is Feature Branching still (or ever) considered a bad practice?
  • Working with Eclipse .classpath and project files in Git?
  • Using git-svn without appending git-svn-id
  • Trimming huge git repository size
  • One Solution collect form web for “Gerrit try to configure trivial rebase”

    The file to edit is ‘project.config’ in the All-Project repository.

    See this link.

    $ git clone ssh://user@gerrit.xxx.com:29418/All-Projects
    $ cd All-Projects
    $ git fetch origin refs/meta/config:refs/remotes/origin/meta/config
    $ git checkout meta/config
    $ #edit project.config
    $ git commit -a
    $ git push origin meta/config:meta/config

    Git Baby is a git and github fan, let's start git clone.