title: "Could not get advertised Ref for branch..." error when pulling in a git repository in Eclipse
body: <p>When trying to pull (Team|Pull from the context menu) in a git repository in Eclipse I get <code>Could not get advertised Ref for branch refs/heads/develop</code> error. I guess that's because remote branch named <code>develop</code> was deleted in the meantime. Branch <code>develop</code> is currently checked out.</p>
  
  <p>How to fix this?<br>
  Can I configure git and/or Eclipse so that I don't get this error next time some other remote branch gets deleted?</p>