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

CliGit implementation of fetch/deleteBranch does remove open changes, JGit does not

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-client-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Git plugin calls fetch with branch always with deleteBranchIfExists, which in case of CliGit results in the call of

      launchCommand("checkout", "-f", ref);
      

      which in turn throws away all local modifications and leaves a clean status.

      in JGit, setForce() is also used, but does not seem to work as expected. There are already comments in the code discussing this behviour, but they only point to checkout conflicts.

        Attachments

          Activity

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              paux Stephan Pauxberger
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: