When checking out a repo, use Dir.chdir to change down into the project directory, instead of chaining together git commands.