summaryrefslogtreecommitdiff
path: root/Command/Indirect.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Indirect.hs')
-rw-r--r--Command/Indirect.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Indirect.hs b/Command/Indirect.hs
index f5234b4dc..06897e292 100644
--- a/Command/Indirect.hs
+++ b/Command/Indirect.hs
@@ -20,7 +20,7 @@ import Annex.Content
import Annex.Content.Direct
import Annex.CatFile
import Annex.Init
-import qualified Command.Add
+import Annex.Ingest
cmd :: Command
cmd = notBareRepo $ noDaemonRunning $
@@ -90,7 +90,7 @@ perform = do
Right _ -> do
l <- calcRepo $ gitAnnexLink f k
liftIO $ createSymbolicLink l f
- Left e -> catchNonAsync (Command.Add.undo f k e)
+ Left e -> catchNonAsync (restoreFile f k e)
warnlocked
showEndOk