projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82b110
)
remove (v6) associated file in unannex
author
Joey Hess
<joeyh@joeyh.name>
Mon, 21 Dec 2015 22:00:13 +0000
(18:00 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Mon, 21 Dec 2015 22:00:48 +0000
(18:00 -0400)
Command/Unannex.hs
patch
|
blob
|
history
diff --git
a/Command/Unannex.hs
b/Command/Unannex.hs
index f7af8cde6301cea2e98a5445c06d574ee057537f..9bde191068e7353f1a2973437a98f2c3cd86947c 100644
(file)
--- 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