Throw NoSuchGitRepositoryException when reading from invalid repo