diff options
author | Joey Hess <joey@kitenet.net> | 2010-12-23 21:53:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-23 21:58:58 -0400 |
commit | 346c7a025780e011cdfdbb7eb27281f808a8de92 (patch) | |
tree | 3e8c9caef53105878f9378fbcd08e821ebe8540e /Core.hs | |
parent | 61b7f3dea3b54ead64cd5e957da28c83e7c25c85 (diff) |
Avoid multiple calls to git ls-files when passed eg, "*".
Diffstat (limited to 'Core.hs')
-rw-r--r-- | Core.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,6 +204,6 @@ getKeysPresent' dir = do getKeysReferenced :: Annex [Key] getKeysReferenced = do g <- Annex.gitRepo - files <- liftIO $ Git.inRepo g $ Git.workTree g + files <- liftIO $ Git.inRepo g [Git.workTree g] keypairs <- mapM Backend.lookupFile files return $ map fst $ catMaybes keypairs |