nub the equivilant key list
If somehow the same key gets listed in the log twice, avoid doing double checksumming.
This commit is contained in:
parent
0ac8962b1b
commit
310a49a76d
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ import qualified Annex.Branch
|
||||||
getEquivilantKeys :: Key -> Annex [Key]
|
getEquivilantKeys :: Key -> Annex [Key]
|
||||||
getEquivilantKeys key = do
|
getEquivilantKeys key = do
|
||||||
config <- Annex.getGitConfig
|
config <- Annex.getGitConfig
|
||||||
mapMaybe (deserializeKey' . fromLogInfo)
|
nub . mapMaybe (deserializeKey' . fromLogInfo)
|
||||||
<$> presentLogInfo (equivilantKeysLogFile config key)
|
<$> presentLogInfo (equivilantKeysLogFile config key)
|
||||||
|
|
||||||
setEquivilantKey :: Key -> Key -> Annex ()
|
setEquivilantKey :: Key -> Key -> Annex ()
|
||||||
|
|
Loading…
Reference in a new issue