aboutsummaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-19 18:18:57 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-19 18:18:57 -0400
commitaab2b60075ea806b78a32d45936a09cb46341ddc (patch)
treed1782db89ef1db9ea90299e8d798a60547be2b5a /Command
parent5510500771cc45cba77469aefec2a3a790b433e9 (diff)
rekey --force: Incorrectly marked the new key's content as being present in the local repo even when it was not.
Diffstat (limited to 'Command')
-rw-r--r--Command/ReKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/ReKey.hs b/Command/ReKey.hs
index 4ddbd68b6..aaaaf7e37 100644
--- a/Command/ReKey.hs
+++ b/Command/ReKey.hs
@@ -126,6 +126,6 @@ cleanup file oldkey newkey = do
Database.Keys.removeAssociatedFile oldkey
=<< inRepo (toTopFilePath file)
)
-
- logStatus newkey InfoPresent
+ whenM (inAnnex newkey) $
+ logStatus newkey InfoPresent
return True