Allow fairly common ssh repo clone path to work

Allows github-style ssh repo clone paths (i.e. starting `git@...` rather than `ssh://git@...`)

Addresses #8937. 

Brings in #8951 too (as tests rely on it). Recommend merging #8951 first and then this if desired.