Fix a bug in the bisection v2 workflow (#1500)
Summary:
Also, cherry-pick the git checkout functions from V2 branch to main.
Test workflow: https://github.com/pytorch/benchmark/actions/runs/4484360871/jobs/7884775504
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1500
Reviewed By: weiwangmeta
Differential Revision: D44295165
Pulled By: xuzhao9
fbshipit-source-id: 3b57ed400b9b208bd8f76913bed5e585769fcd10