From: Joey Hess Date: Mon, 21 Dec 2015 22:00:13 +0000 (-0400) Subject: remove (v6) associated file in unannex X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~320^2~184^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4cf9efb51ac46443d8b059a67ddcfe2e10f40ece;p=git-annex.git remove (v6) associated file in unannex --- 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