On Tue, Aug 14, 2018 at 2:05 PM Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote: > > So ideally we'd also error out as soon as the host name is touched? > > Do we have some utility function that'll take whatever we have in > remote.<name>.url and spew out the username / host / path? We must, > since the clone protocol needs it, but I haven't found it. Nope. Welcome to the wonderful world of submodules. As submodules are in the transition state towards "in C", we could do some refactorings that would allow for easy access to these properties, but the transition is done via faithful conversion from shell to C, which did not have these functions either, but could just do some string hackery. And that is how we ended up with this function in the first place.