Robust support for all git clone urls.