add the known associated file to the list of others
This commit is contained in:
parent
a69a746afa
commit
710d44a16e
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ handleDropsFrom locs rs reason fromhere key afile preverified runner = do
|
||||||
g <- Annex.gitRepo
|
g <- Annex.gitRepo
|
||||||
map (`fromTopFilePath` g) <$> Database.Keys.getAssociatedFiles key
|
map (`fromTopFilePath` g) <$> Database.Keys.getAssociatedFiles key
|
||||||
)
|
)
|
||||||
let fs = if null l then maybeToList afile else l
|
let fs = case afile of
|
||||||
|
Just f -> nub (f : l)
|
||||||
|
Nothing -> l
|
||||||
n <- getcopies fs
|
n <- getcopies fs
|
||||||
void $ if fromhere && checkcopies n Nothing
|
void $ if fromhere && checkcopies n Nothing
|
||||||
then go fs rs n >>= dropl fs
|
then go fs rs n >>= dropl fs
|
||||||
|
|
Loading…
Reference in a new issue