make the .git extension optional on the repository attribute