netops: error out on url without a path

In order to connect to a remote server, we need to provide a path to the
repository we're interested in. Consider the lack of path in the url an
error.

This should fix #2458 and supersede #2242.

@vmg I think this is another one for maint.