spi/src/main/java/org/jboss/pnc/spi/datastore/predicates/RepositoryConfigurationPredicates.java
public static Predicate<RepositoryConfiguration> withInternalScmRepoUrl(String internalUrl) {
        String urlStripped = StringUtils.stripSuffix(UrlUtils.keepHostAndPathOnly(internalUrl), ".git");
        return (root, query, cb) -> cb.equal(root.get(RepositoryConfiguration_.internalUrlNormalized), urlStripped);
    }
public static Predicate<RepositoryConfiguration> withInternalScmRepoUrl(String internalUrl) {
        String urlStripped = StringUtils.stripSuffix(UrlUtils.keepHostAndPathOnly(internalUrl), ".git");
        return (root, query, cb) -> cb.equal(root.get(RepositoryConfiguration_.internalUrlNormalized), urlStripped);
    }
Queries against normalized version with stripped protocol and .git extension