title: git push --atomic - Not failing
body: <p>I have been trying to use the relatively new <code>--atomic</code> option for <code>git push</code>, but it has not worked for me, i.e., it still lets some refs change even though others failed.</p>
  
  <p>It seems from the diff <a href="https://github.com/git/git/commit/39fa6112ec8492f9300765e1f71e7c8ecfafc713" rel="noreferrer">here</a> that there needs to be something on the remote server that will accept the atomic flag as well. While this makes sense, it seems that the default is to use it.</p>
  
  <p>I am pushing to a BitBucket server instance with http protocol. The current version of Git on the server is "git version 2.8.1".</p>
  
  <p>Is there something that I need to configure on the server to enable this to work?</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Below is an example which can reproduced.</p>
  
  <p>Configuration on server:</p>
  
  <pre><code>$ git --version
  git version 2.8.1
  
  $ git config --get-all --show-origin  receive.advertiseatomic
  file:/home/bitbucket/.gitconfig 1
  </code></pre>
  
  <p>On the client:</p>
  
  <pre><code>$ git --version
  git version 2.8.2.windows.1
  
  $ git push &lt;local-path&gt;/.git HEAD:refs/heads/wwww HEAD:refs/heads/zzz --force-with-lease=zzz --atomic
  error: atomic push failed for ref refs/heads/zzz. status: 7
  
  fatal: The remote end hung up unexpectedly
  To &lt;local-path&gt;/.git
   ! [rejected]        HEAD -&gt; wwww (atomic push failed)
   ! [rejected]        HEAD -&gt; zzz (stale info)
  error: failed to push some refs to '&lt;local-path&gt;/.git'
  
  $ git push origin HEAD:refs/heads/wwww HEAD:refs/heads/zzz --force-with-lease=zzz --atomic
  Total 0 (delta 0), reused 0 (delta 0)
  remote:
  remote:
  To http://me@bitbucket-local.com/scm/proj/repo.git
   * [new branch]      HEAD -&gt; wwww
   ! [rejected]        HEAD -&gt; zzz (stale info)
   error: failed to push some refs to 'http://me@bitbucket-local.com/scm/proj/repo.git'
  </code></pre>