Revert "Checkout the branch name vs 'deploy' when syncing git repositories."

This reverts commit 2a06d1b5678706debbeb84da6b67a50e296fcae5.