Skip to content

Commit 4d50ebd

Browse files
Fixed #1777: extend_skip is not honored wit a git submodule when skip_gitignore=true.
1 parent 6edce90 commit 4d50ebd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/
1010
- Fixed #1779: Pylama integration ignores pylama specific isort config overrides.
1111
- Fixed #1781: `--from-first` CLI flag shouldn't take any arguments.
1212
- Fixed #1792: Sorting literals sometimes ignored when placed on first few lines of file.
13+
- Fixed #1777: extend_skip is not honored wit a git submodule when skip_gitignore=true.
1314

1415
### 5.9.2 July 8th 2021
1516
- Improved behavior of `isort --check --atomic` against Cython files.

isort/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def _check_folder_gitignore(self, folder: str) -> Optional[Path]:
559559
git_options = ["-C", str(git_folder), "-c", "core.quotePath="]
560560
try:
561561
ignored = subprocess.check_output( # nosec # skipcq: PYL-W1510
562-
["git", *git_options, "check-ignore", "-z", "--stdin"],
562+
["git", *git_options, "check-ignore", "-z", "--stdin", "--no-index"],
563563
encoding="utf-8",
564564
env=env,
565565
input="\0".join(files),

0 commit comments

Comments
 (0)