Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for listRemotes (0.06 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GitWrapper.java

        public GitWrapper(ExecOperations execOperations) {
            this.execOperations = execOperations;
        }
    
        /**
         * @return a mapping from remote names to remote URLs.
         */
        public Map<String, String> listRemotes() {
            return runCommand("git", "remote", "-v").lines()
                .filter(l -> l.contains("(fetch)"))
                .map(line -> line.split("\\s+"))
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 3K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/GenerateReleaseNotesTask.java

            LOGGER.info("Finding upstream git remote");
            // We need to ensure the tags are up-to-date. Find the correct remote to use
            String upstream = gitWrapper.listRemotes()
                .entrySet()
                .stream()
                .filter(entry -> entry.getValue().contains("elastic/elasticsearch"))
                .findFirst()
                .map(Map.Entry::getKey)
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 12.9K bytes
    - Click Count (0)
Back to Top