Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
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.