strip out query parameters and hash from repo names