mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-27 09:11:53 -05:00
Revert "[GITEA] Ignore temporary files for directory size"
This reverts commit 68dddcc6ff
.
This commit is contained in:
parent
72bbb30f9d
commit
b17113bb06
1 changed files with 1 additions and 5 deletions
|
@ -167,11 +167,7 @@ func getDirectorySize(path string) (int64, error) {
|
||||||
}
|
}
|
||||||
return err
|
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
|
return nil
|
||||||
}
|
}
|
||||||
f, err := info.Info()
|
f, err := info.Info()
|
||||||
|
|
Loading…
Reference in a new issue