refactored the git checkout code

No match.