forgejo/modules/repository
wxiaoguang 6cc02cdfd4
Ignore "non-existing" errors when getDirectorySize calculates the size (#28276) (#28285)
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.

(cherry picked from commit 4f5122a7fe)
2023-12-08 13:41:16 +01:00
..
branch.go
collaborator.go
collaborator_test.go
commits.go
commits_test.go
create.go Ignore "non-existing" errors when getDirectorySize calculates the size (#28276) (#28285) 2023-12-08 13:41:16 +01:00
create_test.go
delete.go
env.go
fork.go
generate.go
generate_test.go
hooks.go
init.go
init_test.go
license.go
license_test.go
main_test.go
push.go
repo.go
temp.go