Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30507

Python git module should not use the '--work-tree' option

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.12
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • TIG 2017-08-21
    • 0

    Description

      In order to be able to run git command from outside the repository directory, we use the --work-tree or -C option of git.
      The -C option works fine but is not available on some old versions of git that we need to stay compatible with.
      The --work-tree is used instead but it does not work with all subcommands.

      We should avoid using either option and set the working directory to the repository directory when launching the git processes instead.

      Attachments

        Activity

          People

            yves.duhem Yves Duhem
            yves.duhem Yves Duhem
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: