Refactor the way we were getting the git repo