Unhandled `git pull` error when tracked branch ref has been deleted on remote
Closed this issue · 0 comments
eighty4 commented
maestro git
has an unhandled error scenario when performing git pull
on a repo tracking a delete branch on remote.
git checkout -b branch-name
git push -u origin branch-name
- delete branch from remote
git pull
Your configuration specifies to merge with the ref 'refs/heads/branch-name'
from the remote, but no such ref was fetched.
Could also be reproduced by manually changing the branch.[branch-name].merge
config entry pointing to a ref that does not exist:
git clone git@github.com:eighty4/maestro
git config branch.main.merge something-bogus