]> source.dussan.org Git - gitea.git/commit
Retry rename on lock induced failures (#16435)
authorzeripath <art27@cantab.net>
Thu, 15 Jul 2021 15:46:07 +0000 (16:46 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 15:46:07 +0000 (11:46 -0400)
commit33a8eec33e975a74f1718a83e99eb6abc7662a19
treed000ff3f37d417e9d03d15d070ed6fecf9c56636
parentaed086f8b021f5724ff1449ceb9f44dc28749a97
Retry rename on lock induced failures (#16435)

* Retry rename on lock induced failures

Due to external locking on Windows it is possible for an
os.Rename to fail if the files or directories are being
used elsewhere.

This PR simply suggests retrying the rename again similar
to how we handle the os.Remove problems.

Fix #16427

Signed-off-by: Andrew Thornton <art27@cantab.net>
* resolve CI fail

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
cmd/embedded.go
models/repo.go
models/repo_transfer.go
models/ssh_key.go
models/user.go
modules/log/file.go
modules/storage/local.go
modules/util/remove.go