From 4cf9efb51ac46443d8b059a67ddcfe2e10f40ece Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 21 Dec 2015 18:00:13 -0400 Subject: [PATCH] remove (v6) associated file in unannex --- Command/Unannex.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Command/Unannex.hs b/Command/Unannex.hs index f7af8cde63..9bde191068 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