git-sh-setup: move the repository check to a core program.