From d036cd590f5c3c4edcd025effcf57c3d16886559 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 15 Sep 2011 15:44:32 -0400 Subject: [PATCH] bugfix: drop and fsck did not honor --exclude --- Command.hs | 3 ++- debian/changelog | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Command.hs b/Command.hs index c1069f0d92..bcc05c03c9 100644 --- a/Command.hs +++ b/Command.hs @@ -133,7 +133,8 @@ withAttrFilesInGit :: String -> CommandSeekAttrFiles withAttrFilesInGit attr a params = do repo <- Annex.gitRepo files <- liftIO $ runPreserveOrder (LsFiles.inRepo repo) params - liftM (map a) $ liftIO $ Git.checkAttr repo attr files + files' <- filterFiles files + liftM (map a) $ liftIO $ Git.checkAttr repo attr files' withNumCopies :: CommandSeekAttrFiles withNumCopies = withAttrFilesInGit "annex.numcopies" withBackendFilesInGit :: CommandSeekBackendFiles diff --git a/debian/changelog b/debian/changelog index d9e606f829..e940989da7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ git-annex (3.20110907) UNRELEASED; urgency=low only its file component. * get, drop, copy: Added --auto option, which decides whether to get/drop content as needed to work toward the configured numcopies. + * bugfix: drop and fsck did not honor --exclude -- Joey Hess Tue, 06 Sep 2011 16:59:15 -0400