don't run rev-list unless the branch exists