title: Gerrit recreating change-ids
body: <p>I am using gerrit. I used the following command</p>
  
  <pre><code>$ cd .git/hooks
  $ scp -P 29418 demo@localhost:hooks/commit-msg .
  $ cd ../..
  </code></pre>
  
  <p>This adds the change-id to my commit message, however if I amend to a commit it creates a NEW change-id. So when I push back to gerrit it's not adding the patch set, it's creating a whole new review entry.</p>
  
  <p>Any suggests please?</p>
  
  <p>Found the answer, but stackoverflow won't let me answer my own question.</p>
  
  <p>So this was a complete error on my part.
  When I was trying to commit
      git commit --amend -m "Initial Commit"</p>
  
  <p>I was inlining the commit message and that was wiping away the change-Id, thus giving me a new one.</p>