Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore "non-existing" errors when getDirectorySize calculates the size (#28276) #28285

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Nov 29, 2023

Backport #28276

The git command may operate the git directory (add/remove) files in any time.

So when the code iterates the directory, some files may disappear during the "walk". All "IsNotExist" errors should be ignored.

go-gitea#28276)

The git command may operate the git directory (add/remove) files in any
time.

So when the code iterates the directory, some files may disappear during
the "walk". All "IsNotExist" errors should be ignored.
@wxiaoguang wxiaoguang added this to the 1.21.2 milestone Nov 29, 2023
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 29, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 29, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 29, 2023
@wxiaoguang wxiaoguang closed this Nov 30, 2023
@wxiaoguang wxiaoguang deleted the fix-repo-stat-err branch November 30, 2023 12:21
@GiteaBot GiteaBot removed this from the 1.21.2 milestone Nov 30, 2023
@wxiaoguang wxiaoguang restored the fix-repo-stat-err branch November 30, 2023 12:40
@wxiaoguang wxiaoguang reopened this Nov 30, 2023
@wxiaoguang wxiaoguang added this to the 1.21.2 milestone Nov 30, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 30, 2023
@wxiaoguang wxiaoguang enabled auto-merge (squash) November 30, 2023 16:18
@wxiaoguang wxiaoguang merged commit 4f5122a into go-gitea:release/v1.21 Nov 30, 2023
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-repo-stat-err branch December 2, 2023 10:23
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants