Skip to content

Commit 0df34c7

Browse files
Merge pull request #400 from gesslerpd/fix/windows
Fix #399: ensure the git file finder closes file descriptor after reading archive
2 parents e57cf46 + 710434f commit 0df34c7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v3.4.3
2+
======
3+
4+
* fix #399: ensure the git file finder terminates subprocess after reading archive
5+
16
v3.4.2
27
======
38

src/setuptools_scm/file_finder_git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def _git_ls_files_and_dirs(toplevel):
4949
try:
5050
return _git_interpret_archive(proc.stdout, toplevel)
5151
finally:
52-
# ensure we avoid ressource warnings by cleaning up the pocess
53-
proc.wait()
52+
# ensure we avoid resource warnings by cleaning up the process
53+
proc.terminate()
5454
except Exception:
5555
if proc.wait() != 0:
5656
log.exception("listing git files failed - pretending there aren't any")

0 commit comments

Comments
 (0)