[SERVER-30507] Python git module should not use the '--work-tree' option Created: 03/Aug/17  Updated: 30/Oct/23  Resolved: 04/Aug/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Improvement Priority: Major - P3
Reporter: Yves Duhem Assignee: Yves Duhem
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: TIG 2017-08-21
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 10/Aug/17 ]

Author:

{'name': 'Yves Duhem', 'email': 'yves.duhem@mongodb.com'}

Message: SERVER-30507 Remove usage of the git '--work-tree' option
Branch: master
https://github.com/mongodb/mongo/commit/3fdde30e94cb5da1519ed05283f05c252bb63b0b

Generated at Thu Feb 08 04:24:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.