`branch` here can't be remote if you don't specify `branch_type` in `Branch.lookup`, it defaults to local branches only.