Only remove “.git” from the repo name if it is used as a suffix