update keys database when adjusting branches
This commit is contained in:
parent
d7bd4d971d
commit
70e78cc53e
1 changed files with 5 additions and 2 deletions
|
@ -26,6 +26,7 @@ import Annex.CatFile
|
||||||
import Annex.Link
|
import Annex.Link
|
||||||
import Git.HashObject
|
import Git.HashObject
|
||||||
import Annex.AutoMerge
|
import Annex.AutoMerge
|
||||||
|
import qualified Database.Keys
|
||||||
|
|
||||||
data Adjustment = UnlockAdjustment
|
data Adjustment = UnlockAdjustment
|
||||||
deriving (Show)
|
deriving (Show)
|
||||||
|
@ -35,8 +36,10 @@ adjustTreeItem UnlockAdjustment h ti@(TreeItem f m s)
|
||||||
| toBlobType m == Just SymlinkBlob = do
|
| toBlobType m == Just SymlinkBlob = do
|
||||||
mk <- catKey s
|
mk <- catKey s
|
||||||
case mk of
|
case mk of
|
||||||
Just k -> Just . TreeItem f (fromBlobType FileBlob)
|
Just k -> do
|
||||||
<$> hashPointerFile' h k
|
Database.Keys.addAssociatedFile k f
|
||||||
|
Just . TreeItem f (fromBlobType FileBlob)
|
||||||
|
<$> hashPointerFile' h k
|
||||||
Nothing -> return (Just ti)
|
Nothing -> return (Just ti)
|
||||||
| otherwise = return (Just ti)
|
| otherwise = return (Just ti)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue