From b17113bb06b57211b9c264b6953a783e7d0bb9a2 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 8 Dec 2023 13:40:06 +0100 Subject: [PATCH] Revert "[GITEA] Ignore temporary files for directory size" This reverts commit 68dddcc6fff155f12ad592efb9f5f00476e5bdbc. --- modules/repository/create.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/repository/create.go b/modules/repository/create.go index 153686089c..2dac35224e 100644 --- a/modules/repository/create.go +++ b/modules/repository/create.go @@ -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()