Fix a repository path.