Skip to content

Commit

Permalink
Fixed #1802: respect PATH customization in nested calls to git.
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Aug 12, 2021
1 parent 9695fde commit b06a000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,7 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/
### 5.10.0 TBD
- Implemented #1796: Switch to `tomli` for pyproject.toml configuration loader.
- Fixed #1801: CLI bug (--exend-skip-glob, overrides instead of extending).
- Fixed #1802: respect PATH customization in nested calls to git.

#### Potentially breaking changes:
- Fixed #1785: `_ast` module incorrectly excluded from stdlib definition.
Expand Down
2 changes: 1 addition & 1 deletion isort/settings.py
Expand Up @@ -538,7 +538,7 @@ def is_supported_filetype(self, file_name: str) -> bool:
return bool(_SHEBANG_RE.match(line))

def _check_folder_gitignore(self, folder: str) -> Optional[Path]:
env = {"LANG": "C.UTF-8"}
env = {**os.environ, "LANG": "C.UTF-8"}
try:
topfolder_result = subprocess.check_output( # nosec # skipcq: PYL-W1510
["git", "-C", folder, "rev-parse", "--show-toplevel"], encoding="utf-8", env=env
Expand Down

0 comments on commit b06a000

Please sign in to comment.