diff options
author | Carlos MartÃn Nieto <cmn@dwim.me> | 2014-04-04 14:40:38 +0200 |
---|---|---|
committer | Carlos Martin Nieto <cmn@dwim.me> | 2014-06-04 11:58:18 -0700 |
commit | e58281aaba90a79bbe3206b0e876c09839541c01 (patch) | |
tree | 2f2398d9c7d76351432a359d76715a68b0f0a858 /script/install-deps-linux.sh | |
parent | 90befde4a1938641dfdb9a7bdb9f361d1de5c26f (diff) | |
download | libgit2-cmn/filebuf-atomic-unlock.tar.gz |
filebuf: make unlocking atomiccmn/filebuf-atomic-unlock
When renaming a lock file to its final location, we need to make sure
that it is replaced atomically.
We currently have a workaround for Windows by removing the target file.
This means that the target file, which may be a ref or a packfile, may
cease to exist for a short wile, which shold be avoided.
Implement the workaround only in Windows, by making sure that the file
we want to replace is writable.
Diffstat (limited to 'script/install-deps-linux.sh')
0 files changed, 0 insertions, 0 deletions