HomeSoftware Heritage

utils: Handle new edge cases in parse_external_definition

Description

utils: Handle new edge cases in parse_external_definition

Detect malformed URLs with missing colon.

Remove any trailing slash on path as it can lead to errors with the
swh.model.from_disk.Directory model.

Related to T3870