When cloning an already cloned once repo with -U on a new branch, we get "the branch does not exist".
Reproduce:
- Create a repo
- Clone the repo with
git cache clone -U repo -b main
- Add a branch
- Clone the repo again with
- Pull the repo with
git cache clone -U repo -b new_branch