Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33124

git ls-remote could be more optimal when we select a specific branch

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None
    • Linux

      We are using git polling with a specific branch, for example we configure git://git.foo.nl/atcd.git as repository URL and refs/heads/master as branch to build. For the polling we see that the following command is used:
      git -c core.askpass=true ls-remote -h git://git.foo.nl/atcd.git

      Which returns all heads, it would be more optimal when the following is used, that only returns 1 branch
      git -c core.askpass=true ls-remote -h git://git.foo.nl/atcd.git refs/heads/master

          [JENKINS-33124] git ls-remote could be more optimal when we select a specific branch

          Johnny Willemsen created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Summary Original: git ls-mote could be more optimal when we select a specif branch New: git ls-remote could be more optimal when we select a specific branch
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168993 ] New: JNJira + In-Review [ 183313 ]

            Unassigned Unassigned
            jwillemsen Johnny Willemsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: