SourceControl: normalise repository basename computation (#5480)
SourceControl: normalise repository basename computation (#5480)

* SourceControl: normalise repository basename computation

Prefer using the `url` member to get a URL representation of the
location, and then use the `pathComponents` property rather than
splitting on `/` which may be an invalid path separator.

* Update Sources/SourceControl/Repository.swift

Co-authored-by: tomer doron <d6911363a106df680044b70c03ec73e09e9e98e6@apple.com>
abertelrud/swift-package-manager,apple/swift-package-manager,abertelrud/swift-package-manager,apple/swift-package-manager,abertelrud/swift-package-manager,abertelrud/swift-package-manager,apple/swift-package-manager,apple/swift-package-manager,apple/swift-package-manager,abertelrud/swift-package-manager