forgejo/modules
Gusted c3aebcf16a
[GITEA] Ignore temporary files for directory size
- While looking trough the logs for unrelated things I noticed errors
for directory size calculations in `pushUpdates` that were being caused
by a race condition in which git was making temporary file,
`filepath.WalkDir` noticed that but by the time the second lstat
came(`info.Info()`) it was already gone and it would error.
- Ignore temporary files created by Git.
- There are other cases but much much more rarer and not trivial to detect.

Examples:

...s/repository/push.go:96:pushUpdates() [E] Failed to update size for repository: updateSize: lstat [...]/objects/info/commit-graphs/tmp_graph_Wcy9kR: no such file or directory
...s/repository/push.go:96:pushUpdates() [E] Failed to update size for repository: updateSize: lstat [...]/packed-refs.lock: no such file or directory

(cherry picked from commit 16ce00772d)
(cherry picked from commit 9f6bffdaf9)
2023-11-27 18:28:00 +01:00
..
actions [CI] Search .forgejo/workflows first 2023-11-27 15:43:46 +01:00
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
analyze
assetfs
auth [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
avatar [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
base [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
cache
charset
container
context [SECURITY] Rework long-term authentication 2023-11-27 16:17:05 +01:00
contexttest Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
csv
doctor Fix delete-orphaned-repos (#28200) 2023-11-24 14:46:19 +00:00
emoji
eventsource Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
generate
git [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
gitgraph More db.DefaultContext refactor (#27265) 2023-09-29 12:12:54 +00:00
graceful Refactor graceful manager to use shared code (#28073) 2023-11-24 14:21:46 +00:00
hcaptcha
highlight
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 2023-10-18 09:44:36 +00:00
html
httpcache
httplib
indexer [CI] disable meilisearch/elasticsearch test, no server yet in CI 2023-11-27 15:43:46 +01:00
issue/template
json
label
lfs [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
log
markup Use restricted sanitizer for repository description (#28141) 2023-11-23 16:34:25 +00:00
mcaptcha
metrics Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
migration
nosql
options
packages Close all hashed buffers (#27787) 2023-10-25 21:24:24 +02:00
paginator
pprof
private [CLI] implement forgejo-cli 2023-11-27 15:43:46 +01:00
process Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
proxy
proxyprotocol
public
queue [CI] disable redis test, no redis server yet in CI 2023-11-27 15:43:46 +01:00
recaptcha
references Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 2023-09-14 02:59:53 +00:00
regexplru
repository [GITEA] Ignore temporary files for directory size 2023-11-27 18:28:00 +01:00
secret [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
session Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
setting [GITEA] notifies admins on new user registration 2023-11-27 18:27:36 +01:00
sitemap
ssh Remove SSH workaround (#27893) 2023-11-03 15:21:05 +00:00
storage [CI] Forgejo Actions based CI for PR & branches 2023-11-27 15:43:46 +01:00
structs [FEAT] allow setting the update date on issues and comments 2023-11-27 16:16:02 +01:00
svg
sync
system Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
templates Upgrade to golangci-lint@v1.55.0 (#27756) 2023-10-24 02:54:59 +00:00
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
upload
uri
user
util [GITEA] Drop sha256-simd in favor of stdlib 2023-11-27 18:28:00 +01:00
validation [GITEA] add option for banning dots in usernames 2023-11-27 18:27:35 +01:00
web [GITEA] Use maintained gziphandler 2023-11-27 18:28:00 +01:00
webhook