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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: