// treated as a marketplace registry endpoint identified by host alone.
if (!trimmedPath) {
rawValue,
displayLabel: rawValue,
cloneUrl: cloneUri.toString(),
canonicalId: appendRefSuffix(`git:${uri.authority.toLowerCase()}/`, ref),
cacheSegments: [sanitizedAuthority, ...getRefCacheSegments(ref)],
kind: MarketplaceReferenceKind.GitUri,
ref,
};
}
const gitSuffix = '.git';