title: Git 1.8: it push error: dst ref refs/heads/master receives from more than one src
body: <p>Another issue with git 1.8:</p>
  
  <pre><code>$ git push
  error: dst ref refs/heads/master receives from more than one src.
  error: failed to push some refs to 'gitosis@xxx.xx:xxx.git'
  </code></pre>
  
  <p>Suggestions? It was working before upgrading to 1.8.</p>
  
  <pre><code>$ git remote -v
  origin  gitosis@xxx.xx:xxx.git (fetch)
  origin  gitosis@xxx.xx:xxx.git (push)
  </code></pre>
  
  <p>After googling around I tried this first:</p>
  
  <pre><code>$ git push origin :refs/heads/refs/heads/master
  remote: warning: Allowing deletion of corrupt ref.
  To gitosis@xxx.xx:xxx.git
   - [deleted]         refs/heads/master
  </code></pre>
  
  <p>No idea what is that and why it was corrupt.</p>
  
  <pre><code>$ git pull
  Already up-to-date.
  
  $ git push
  error: dst ref refs/heads/master receives from more than one src.
  error: failed to push some refs to 'gitosis@xxx.xx:xxx.git'
  </code></pre>
  
  <p>Still not working, but <code>origin master</code> did work at least:</p>
  
  <pre><code>$ git push origin master
  Counting objects: 42, done.
  To gitosis@xxx.xx:xxx.git
  3e3fc87..6e11d2a  master -&gt; master
  </code></pre>
  
  <p>Okay, that kind of fixed it but what was the cause of the issue to begin with? Why origin/master suddenly got corrupted? What did I do with <code>git push origin :refs/heads/refs/heads/master</code> ?</p>
  
  <p><code>.git/config</code>:</p>
  
  <pre><code>[core]
  repositoryformatversion = 0
  filemode = false
  bare = false
  logallrefupdates = true
  ignorecase = true
  precomposeunicode = false
  [remote "origin"]
  fetch = +refs/heads/*:refs/remotes/origin/*
  url = gitosis@xxx.xx:xx.git
  push = HEAD
  [branch "master"]
  remote = origin
  merge = refs/heads/master
  
  ls .git/refs/remotes/origin:
  
  HEAD    master  refs
  </code></pre>
  
  <p>In the end, now I have to do <code>git push origin master</code> every time. And the most annoying is that some repos work with <code>git push</code>, but on the most of them I got to add <code>origin master</code> but I don't understand why, and it can't be that I am alone having this problem.</p>