This commit is contained in:
parent
601b07196e
commit
dd4de9deb4
1 changed files with 5 additions and 0 deletions
5
doc/forum/git_annex_unlock_is_not_atomic.mdwn
Normal file
5
doc/forum/git_annex_unlock_is_not_atomic.mdwn
Normal file
|
@ -0,0 +1,5 @@
|
|||
Running a command like
|
||||
|
||||
git annex unlock myfile
|
||||
|
||||
is not atomic, that is if the execution is aborted you may end up with an incomplete version of myfile in the directory. If you don't notice this you may lock it again and then propagate this bad version of the file to your other repositories. A simple workaround is to simply name it something else while unlocking and then rename it to the correct filename once it's completely copied. I don't know Haskel yet so I can not fix this issue otherwise I would sure try. A part from this, I love git annex.
|
Loading…
Reference in a new issue