summaryrefslogtreecommitdiff
path: root/Command/Add.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Add.hs')
-rw-r--r--Command/Add.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index 23c9318fd..7a1150d10 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -49,7 +49,10 @@ seek o = allowConcurrentOutput $ do
matcher <- largeFilesMatcher
let gofile file = ifM (checkFileMatcher matcher file <||> Annex.getState Annex.force)
( start file
- , startSmall file
+ , ifM (annexAddSmallFiles <$> Annex.getGitConfig)
+ ( startSmall file
+ , stop
+ )
)
case batchOption o of
Batch -> batchFiles gofile