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

Git submodule fetch uses (incorrect) parent refspec

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      hudson 1.385, Hudson git plugin 1.1.3
    • Similar Issues:

      Description

      When using the "recursively update submodules" option, as well as a specific refspec, it tries to apply the same refspec when fetching changes for the submodule, causing spurious errors in the log:

      Checkout:test / /home/punkyb/hudson/amd64-lucid/workspace/test - hudson.remoting.Channel@61ae0436:slave-amd64-lucid
      Using strategy: Default
      Last Built Revision: Revision becbe8166b41940e842548f8dcc895ddafc67ceb (origin/release/1.2)
      Checkout:test / /home/punkyb/hudson/amd64-lucid/workspace/test - hudson.remoting.LocalChannel@23226fe1
      GitAPI created
      Fetching changes from the remote Git repository
      Fetching upstream changes from ssh://sourcecontrol/parent.git
      [test] $ git fetch -t ssh://sourcecontrol/parent.git/parent.git refs/heads/featurebranch
      [test] $ git ls-tree HEAD
      Trying to fetch submodule into /home/punkyb/hudson/amd64-lucid/workspace/test/submodule
      GitAPI created
      Fetching upstream changes from ssh://sourcecontrol/submodule.git
      [submodule] $ git fetch -t ssh://sourcecontrol/submodule.git refs/heads/featurebranch
      Problem fetching from submodule submodule - could be unavailable. Continuing anyway

        Attachments

          Activity

          ccutrer Cody Cutrer created issue -
          eanderson Eric Anderson made changes -
          Field Original Value New Value
          Assignee abayer [ abayer ] Eric Anderson [ eanderson ]
          jorgenpt Jørgen Tjernø made changes -
          Assignee Eric Anderson [ eanderson ] Jørgen Tjernø [ jorgenpt ]
          jorgenpt Jørgen Tjernø made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          ndeloof Nicolas De Loof made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 138252 ] JNJira + In-Review [ 204723 ]

            People

            • Assignee:
              jorgenpt Jørgen Tjernø
              Reporter:
              ccutrer Cody Cutrer
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: