diff options
author | isaacs <i@izs.me> | 2019-07-02 03:46:25 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-07-03 20:08:32 +0300 |
commit | 3cbd577120a9da6e51bb8b13534d1bf71ea5712c (patch) | |
tree | 9693080b4acac74a9fc785fe54e26068ea0e476d /node_modules/yallist | |
parent | c1522be2406a0ea4f14c85753edd42ddd8d7e180 (diff) |
fix(git): strip GIT environs when running git
When running an npm command from within a git environment, such as
installing or testing during a git rebase or bisect, these environment
variables will be passed to the child process, causing it to
fetch/checkout/etc in the root project instead of doing what the user
intends.
Strip them out so that they are not passed to the child process.
Also, remove git environs from the test environment, so that spawning
git in a test to set up a dummy repo doesn't mess with the main
project's git repository. This enables adding `exec npm test` in a `git
rebase -i` list to run tests between commits.
Diffstat (limited to 'node_modules/yallist')
0 files changed, 0 insertions, 0 deletions