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);
    }
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
Queries against normalized version with stripped protocol and . git extension