(PDB-1034) cleanup git checkout logic

Signed-off-by: Ken Barber <ken@bob.sh>