public static Predicate<RepositoryConfiguration> withExternalScmRepoUrl(String externalScmRepoUrl) {
        String urlStripped = StringUtils.stripSuffix(UrlUtils.keepHostAndPathOnly(externalScmRepoUrl), ".git");
        return (root, query, cb) -> cb.equal(root.get(RepositoryConfiguration_.externalUrlNormalized), urlStripped);
    }
public static Predicate<RepositoryConfiguration> withExternalScmRepoUrl(String externalScmRepoUrl) {
        String urlStripped = StringUtils.stripSuffix(UrlUtils.keepHostAndPathOnly(externalScmRepoUrl), ".git");
        return (root, query, cb) -> cb.equal(root.get(RepositoryConfiguration_.externalUrlNormalized), urlStripped);
    }
public static Predicate < RepositoryConfiguration > withExternalScmRepoUrl ( String externalScmRepoUrl ) { String urlStripped = StringUtils . stripSuffix ( UrlUtils . keepHostAndPathOnly ( externalScmRepoUrl ) , ".git" ) ; return ( root , query , cb ) -> cb . equal ( root . get ( RepositoryConfiguration_ . externalUrlNormalized ) , urlStripped ) ; }
Queries against normalized version with stripped protocol and .git extension
Queries against normalized version with stripped protocol and . git extension