Made ".git" part optional in URL pattern