diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-05 14:09:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-05 14:09:57 -0400 |
commit | 1187ce4341f22cb8a8a1ce4c758652e50fe66c55 (patch) | |
tree | 982c7e28edbd38e39c2f952d424aff20d9e572a3 /Annex/UUID.hs | |
parent | e7fce9f30007dda543f5581371cf624e8a23cb99 (diff) |
add: Fix rollback when disk is completely full.
Noticed that it was possible for add to move a file to .git/annex/objects
and not make the link if the disk was full. This happened because the
location log update failed, and so addLink never got a chance to run.
Running addLink first fixes it; on error it will unwind by moving the file
back to where it was originally.
Diffstat (limited to 'Annex/UUID.hs')
0 files changed, 0 insertions, 0 deletions