diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-06-09 14:40:44 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-06-09 14:40:44 -0400 |
commit | 3be798cc348c0869e76c02c972126403927f4475 (patch) | |
tree | f748aee098be4d1e072f867b57d045b4d1c4e503 /Command/Lock.hs | |
parent | acc29b6b9759794a27a0c81315fd0bd5a7f1a052 (diff) |
Make lock and unlock work in v6 repos on files whose content is not present.
Diffstat (limited to 'Command/Lock.hs')
-rw-r--r-- | Command/Lock.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Lock.hs b/Command/Lock.hs index 1cd50de7b..f9d903622 100644 --- a/Command/Lock.hs +++ b/Command/Lock.hs @@ -45,7 +45,7 @@ startNew file key = ifM (isJust <$> isAnnexLink file) ) where go (Just key') - | key' == key = error "content not present; cannot lock" + | key' == key = cont True | otherwise = errorModified go Nothing = ifM (isUnmodified key file) |