Revert "[GITEA] Ignore temporary files for directory size"

This reverts commit 68dddcc6ff.
This commit is contained in:
Earl Warren 2023-12-08 13:40:06 +01:00
parent 72bbb30f9d
commit b17113bb06
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -167,11 +167,7 @@ func getDirectorySize(path string) (int64, error) {
}
return err
}
fileName := info.Name()
// Ignore temporary Git files as they will like be missing once info.Info is
// called and cause a disrupt to the whole operation.
if info.IsDir() || strings.HasSuffix(fileName, ".lock") || strings.HasPrefix(filepath.Base(fileName), "tmp_graph") {
if info.IsDir() {
return nil
}
f, err := info.Info()