| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e359718 commit b12fd4a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -362,6 +362,8 @@ def from_tree(cls, repo: "Repo", *treeish: Treeish, **kwargs: Any) -> "IndexFile | |||
| 362 | 362 | # works - /tmp/ dirs could be on another device. | |
| 363 | 363 | with ExitStack() as stack: | |
| 364 | 364 | tmp_index = stack.enter_context(tempfile.NamedTemporaryFile(dir=repo.git_dir)) | |
| 365 | + if os.name == "nt": | ||
| 366 | + tmp_index.close() | ||
| 365 | 367 | arg_list.append("--index-output=%s" % tmp_index.name) | |
| 366 | 368 | arg_list.extend(treeish) | |
| 367 | 369 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments