Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Close .git/index file descriptor#1394

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

skshetry
Copy link
Contributor

The index fd is not closed, which makes it fail on Windows with PermissionError:

E PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pytest-of-runneradmin\\pytest-0\\test_commit_in_root_repo_with_0\\.git\\index'

and sometimes with not much information when using APIs that interact with git binary:

fatal: Unable to write new index file

Also seeiterative/scmrepo#27 andconda-forge/gitpython-feedstock#62.

This regression was introduced on#1391 (specifically ond79d20d, and released on 3.1.25).

@Byron
Copy link
Member

Thanks a lot for the fix. I thought that usingtry:finally might be even safer and implemented that ine16a004, which is why this PR has to be closed without merging.

A new release will be created within a couple of minutes.

skshetry and zhiltsov-max reacted with heart emoji

@ByronByron closed thisJan 10, 2022
@skshetryskshetry deleted the close-fd branchJanuary 10, 2022 13:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@skshetry@Byron

[8]ページ先頭

©2009-2025 Movatter.jp