summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-09 12:54:18 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-09 12:54:18 -0400
commit772719d73a6feb182cbd69a632ed39bc6dc13f2f (patch)
treefd2e4b59a97fda071193aa620500a2269bd5d54f
parentefdd19a135b284546f22f4433389113e8da7616d (diff)
make clear that log is only updated after successful removal
This does not change behavior, because an exception is thrown on unsuccessful removal. But is clearer.
-rw-r--r--Remote/Git.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs
index 41fb46e82..9602f81c6 100644
--- a/Remote/Git.hs
+++ b/Remote/Git.hs
@@ -356,9 +356,9 @@ dropKey r key
commitOnCleanup r $ onLocal r $ do
ensureInitialized
whenM (Annex.Content.inAnnex key) $ do
- Annex.Content.lockContentForRemoval key
+ Annex.Content.lockContentForRemoval key $ do
Annex.Content.removeAnnex
- logStatus key InfoMissing
+ logStatus key InfoMissing
Annex.Content.saveState True
return True
| Git.repoIsHttp (repo r) = giveup "dropping from http remote not supported"