mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-08-19 06:01:31 +02:00
Backport https://github.com/go-gitea/gitea/pull/28726 by @fuxiaohei
Fix Uploaded artifacts should be overwritten
https://github.com/go-gitea/gitea/issues/28549
When upload different content to uploaded artifact, it checks that
content size is not match in db record with previous artifact size, then
the new artifact is refused.
Now if it finds uploading content size is not matching db record when
receiving chunks, it updates db records to follow the latest size value.
(cherry picked from commit
|
||
---|---|---|
.. | ||
ping | ||
runner | ||
actions.go | ||
artifacts.go | ||
artifacts_chunks.go | ||
artifacts_utils.go |