You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath 33a8eec33e
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>
3 years ago
..
compare.go migrate from com.* to alternatives (#14103) 3 years ago
copy.go migrate from com.* to alternatives (#14103) 3 years ago
paginate.go [API] Add pagination to ListBranches (#14524) 3 years ago
paginate_test.go [API] Add pagination to ListBranches (#14524) 3 years ago
path.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
path_test.go Add LFS Migration and Mirror (#14726) 3 years ago
remove.go Retry rename on lock induced failures (#16435) 3 years ago
sanitize.go Add push to remote mirror repository (#15157) 3 years ago
sanitize_test.go Add push to remote mirror repository (#15157) 3 years ago
shellquote.go Completely quote AppPath and CustomConf paths (#12955) 4 years ago
shellquote_test.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
timer.go Prevent timer leaks in Workerpool and others (#11333) 4 years ago
url.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
util.go Use single shared random string generation function (#15741) 3 years ago
util_test.go Use single shared random string generation function (#15741) 3 years ago