Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(COMSPEC): Deprecate use of subshell cmd.exe #4692

Merged
merged 2 commits into from
Jan 26, 2022

Conversation

rashil2000
Copy link
Member

Description

It is possible that COMSPEC is undefined/empty, or some people even set it to powershell instead of cmd (extremely dangerous).

We only use COMSPEC in one place now, in lib/git.ps1, so I replaced that with the actual binary name (which will always exist).

Also removed the function which tested COMSPEC's existence.

Motivation and Context

Closes #3845

How Has This Been Tested?

No functional changes, so not tested.

Checklist:

  • I have read the Contributing Guide.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants