add --force overrides annex.largefiles
authorJoey Hess <joey@kitenet.net>
Fri, 29 Mar 2013 20:20:15 +0000 (16:20 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 29 Mar 2013 20:20:15 +0000 (16:20 -0400)
Command/Add.hs

index 83b1ca22cd505d4ed9fdbac18bbf09f64d580695..b90db8ba104e8f5e1dd4d576cb6657866b18a627 100644 (file)
@@ -44,7 +44,7 @@ seek =
        ]
   where
        go a = withValue largeFilesMatcher $ \matcher ->
-               a $ \file -> ifM (checkFileMatcher matcher file)
+               a $ \file -> ifM (checkFileMatcher matcher file <||> Annex.getState Annex.force)
                        ( start file
                        , stop
                        )