consider only branches in guess_remote_head