normalize git URLs when caching (fixes #7009)