Turn a Git URL into its canonical form.