Merge branch 'rebase-v1.21/forgejo-dependency' into wip-v1.21-forgejo

This commit is contained in:
Earl Warren 2023-11-13 16:47:12 +01:00
commit 30a15784d4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
114 changed files with 1496 additions and 323 deletions

View file

@ -167,7 +167,11 @@ func getDirectorySize(path string) (int64, error) {
}
return err
}
if info.IsDir() {
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") {
return nil
}
f, err := info.Info()