aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sync/bufio.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-14 12:52:56 +0100
committerMichael Muré <batolettre@gmail.com>2023-01-14 12:52:56 +0100
commitcfec9e38e6519e80e1e3ac3de224ffd33997bcea (patch)
tree2365448c2071346ec6ecf6151e838c3be6fcc2c9 /utils/sync/bufio.go
parent5dabd83e3712e2554745c736b55df405a0ba4f33 (diff)
downloadgo-git-cfec9e38e6519e80e1e3ac3de224ffd33997bcea.tar.gz
dotgit: fix a filesystem race in Refs/walkReferencesTree
In walkReferencesTree(), the filesystem is browsed recursively. After a folder is listed, each child element (directory, file) are inspected. What can happen is that by the time we get to operate on the child element, it might have been deleted from the filesystem and we would get a PathError. In the case of directories there was already a case to avoid bubbling up the error (we consider that there is no ref there, which is correct), but that was missing for files. This commit just apply the same logic.
Diffstat (limited to 'utils/sync/bufio.go')
0 files changed, 0 insertions, 0 deletions