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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: