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

Failure to check out commit that is not an ancestor of master

XMLWordPrintable

      git clone git://github.com/jglick/nodejs-plugin.git nodejs
      cd nodejs
      git checkout b0150ba21371d3e12b23903e3f15b5a817848e78
      

      fails with

      fatal: reference is not a tree: b0150ba21371d3e12b23903e3f15b5a817848e78
      

      because I deleted my branch after the PR was merged; while

      git clone git://github.com/jglick/nodejs-plugin.git nodejs
      cd nodejs
      git fetch origin b0150ba21371d3e12b23903e3f15b5a817848e78
      git checkout b0150ba21371d3e12b23903e3f15b5a817848e78
      

      works to check out https://github.com/jglick/nodejs-plugin/commit/b0150ba21371d3e12b23903e3f15b5a817848e78. Since https://github.com/jenkinsci/plugin-compat-tester/blob/9b7f03ba329a038903622005300b9a5b7bd3668f/plugins-compat-tester/src/main/java/org/jenkins/tools/test/hook/AbstractMultiParentHook.java#L53 apparently omits the fetch equivalent, PCT will not check out 1.3.8-rc218.b0150ba21371 at least until I bring my fork's master branch up to date with upstream.

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: