summaryrefslogtreecommitdiff
path: root/Command/Lock.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-06-09 14:40:44 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-06-09 14:40:44 -0400
commit3be798cc348c0869e76c02c972126403927f4475 (patch)
treef748aee098be4d1e072f867b57d045b4d1c4e503 /Command/Lock.hs
parentacc29b6b9759794a27a0c81315fd0bd5a7f1a052 (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.hs2
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)