title: Gerrit disable pushing of empty patch-sets
body: <p>In older versions of Gerrit when trying to do a push of a commit with a different SHA, but no changes - so no changes in the commit message, no changes in the commit content, and no changes in its ancestors you would get an error like this:</p>
  <pre><code>remote: (W) No changes between prior commit a5ff9c3 and new commit 014229a
  To ssh://developer@gerritserver:29418/projectX
  ! [remote rejected] HEAD -&gt; refs/for/master (no changes made)
  error: failed to push some refs to 'ssh://developer@gerritserver:29418/projectX'
  </code></pre>
  <p>So Gerrit wouldn't allow you to push an empty patch-set.
  This was the behavior on some 2.X Gerrit versions.</p>
  <p>Now when using 3.1.4 there is only the warning:</p>
  <pre><code>remote: warning: no changes between prior commit c94b74a and new commit 19e07aa
  remote: 
  remote: SUCCESS
  </code></pre>
  <p>And everything passes well after that. This means that if you do a cherry-pick and push to Gerrit you create an empty patch-set, which isn't what I would consider good behavior.</p>
  <p>Is there a way to force the same behavior as the previous Gerrit versions? I tried with the <code>Reject empty commit upon submit</code> configuration in the project settings and at first, I thought it's working, but that doesn't seem to be the correct option to change.</p>