title: Git 'Refusing to fetch' error
body: <p>I'm not sure what has happened, but this command used to work up to now. I have a branch named <code>refactorizacion</code> checked out. If I run the command <code>git fetch</code>, it seems to work fine (no error is shown), but if I run <code>git fetch origin refactorizacion:refactorizacion</code>, it gives me the following error:</p>
  
  <pre><code>fatal: Refusing to fetch into current branch refs/heads/refactorizacion of non-bare repository
  Unexpected end of command stream
  </code></pre>
  
  <p>This is also causing the <code>Team &gt; Synchronize Workspace</code> command of <code>egit</code> in eclipse to show an error:</p>
  
  <pre><code>Fetch operation failed
  Synchronization will be continued based on data that are currently in repository.
  You can disable fetching changes before synchronization in preferences: Team &gt; Git &gt; Always launch fetch before synchronization
  </code></pre>