fixed typo in isGitRepo func