cypress-io / commit-info

Collects Git commit info using git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not change process.cwd()

brian-mann opened this issue · comments

Just pass it as an option to execa.

const runGit = () => execa.shell(gitCommand).then(prop('stdout'))

Also FWIW the .tap(...) call to change back process.cwd will not be called if the promise throws, resulting in a mutated process.cwd

Version 1.2.2 has been published to NPM. The full release note can be found at commit-info/releases/tag/v1.2.2.

Tip: safely upgrade dependency @cypress/commit-info in your project using next-update