summaryrefslogtreecommitdiff
path: root/Command/ReKey.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-04-11 13:35:52 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-04-11 13:35:52 -0400
commite15223eba22e27f934c366b17a62c80f676360e8 (patch)
treeb0a86335757bf247b6ae956db3ca902086ba7997 /Command/ReKey.hs
parent321bae61104bd64126aedb3b03093ff6e4daf35a (diff)
addurl: Bugfix: Did not properly add file in direct mode.
Diffstat (limited to 'Command/ReKey.hs')
-rw-r--r--Command/ReKey.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Command/ReKey.hs b/Command/ReKey.hs
index d14edb06d..bc4a9fac9 100644
--- a/Command/ReKey.hs
+++ b/Command/ReKey.hs
@@ -14,6 +14,7 @@ import Types.Key
import Annex.Content
import qualified Command.Add
import Logs.Web
+import Logs.Location
import Config
import Utility.CopyFile
@@ -70,4 +71,6 @@ cleanup file oldkey newkey = do
-- Update symlink to use the new key.
liftIO $ removeFile file
- Command.Add.cleanup file newkey True
+ Command.Add.addLink file newkey True
+ logStatus newkey InfoPresent
+ return True