aboutsummaryrefslogtreecommitdiff
path: root/Command/Unannex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-21 18:00:13 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-21 18:00:48 -0400
commit5c0d394c39f0cc08abad5de12d797a18661b6c9d (patch)
treedd73346c8a6c9a57d7263f2e750f765606282468 /Command/Unannex.hs
parent80af78f48eb59fa33849eedc5779e3649328cde0 (diff)
remove (v6) associated file in unannex
Diffstat (limited to 'Command/Unannex.hs')
-rw-r--r--Command/Unannex.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Command/Unannex.hs b/Command/Unannex.hs
index f7af8cde6..9bde19106 100644
--- a/Command/Unannex.hs
+++ b/Command/Unannex.hs
@@ -22,6 +22,7 @@ import qualified Git.Ref
import qualified Git.DiffTree as DiffTree
import Utility.CopyFile
import Command.PreCommit (lockPreCommitHook)
+import qualified Database.Keys
cmd :: Command
cmd = withGlobalOptions annexedMatchingOptions $
@@ -86,6 +87,7 @@ performIndirect file key = do
cleanupIndirect :: FilePath -> Key -> CommandCleanup
cleanupIndirect file key = do
+ Database.Keys.removeAssociatedFile key file
src <- calcRepo $ gitAnnexLocation key
ifM (Annex.getState Annex.fast)
( do