title: git pull fails 'error: refs/stash does not point to a valid object!'
body: <p>git pull is giving this error:</p>
  
  <pre><code>$ git pull
  error: refs/stash does not point to a valid object!
  error: refs/stash does not point to a valid object!
  error: refs/stash does not point to a valid object!
  error: refs/stash does not point to a valid object!
  Current branch mybranch is up to date.
  </code></pre>
  
  <p>I have tried <a href="https://stackoverflow.com/a/19409320/403616">this solution</a> but it doesn't work for me. 
  <strong>Updated</strong> info:</p>
  
  <pre><code>$ GIT_TRACE=1 git pull 
  trace: exec: 'git-pull'
  trace: run_command: 'git-pull'
  trace: built-in: git 'rev-parse' '--git-dir'
  trace: built-in: git 'rev-parse' '--is-bare-repository'
  trace: built-in: git 'rev-parse' '--show-toplevel'
  trace: built-in: git 'ls-files' '-u'
  trace: built-in: git 'symbolic-ref' '-q' 'HEAD'
  trace: built-in: git 'config' '--bool' 'branch.mybranch.rebase'
  trace: built-in: git 'rev-parse' '-q' '--verify' 'HEAD'
  trace: built-in: git 'rev-parse' '--verify' 'HEAD'
  trace: built-in: git 'update-index' '-q' '--ignore-submodules' '--refresh'
  trace: built-in: git 'diff-files' '--quiet' '--ignore-submodules'
  trace: built-in: git 'diff-index' '--cached' '--quiet' '--ignore-submodules' 'HEAD' '--'
  trace: built-in: git 'rev-parse' '-q' '--git-dir'
  trace: built-in: git 'rev-parse' '-q' '--verify' 'refs/remotes/origin/mybranch'
  trace: built-in: git 'merge-base' '53512e9ce3faa7c78b6d5d7ba1a63e56b5a42a11' 'refs/heads/mybranch'
  trace: built-in: git 'rev-parse' '-q' '--verify' 'HEAD'
  trace: built-in: git 'fetch' '--update-head-ok'
  error: refs/stash does not point to a valid object!
  trace: run_command: 'ssh' 'git@git-master' 'git-upload-pack '\''function-test'\'''
  error: refs/stash does not point to a valid object!
  trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all' '--quiet'
  trace: run_command: 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  trace: exec: 'git' 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  trace: built-in: git 'rev-list' '--verify-objects' '--stdin' '--not' '--all'
  error: refs/stash does not point to a valid object!
  error: refs/stash does not point to a valid object!
  trace:...
  </code></pre>