summaryrefslogtreecommitdiff
path: root/Command/Add.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-15 14:02:53 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-15 14:03:25 -0400
commit5a48c059b756b1ec51d34f8221a43972594952ab (patch)
treec82e7e35be393ecd144ffc03228f91273ea3c8b4 /Command/Add.hs
parentfd00fe96eea4d80191d21d3fa27948ffb75d0171 (diff)
add: no need to make pass for old unlocked files in v6
Diffstat (limited to 'Command/Add.hs')
-rw-r--r--Command/Add.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index f4bdc70c9..948a0d94c 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -33,6 +33,7 @@ import Annex.ReplaceFile
import Utility.Tmp
import Utility.CopyFile
import Annex.InodeSentinal
+import Annex.Version
import Control.Exception (IOException)
@@ -67,7 +68,8 @@ seek o = allowConcurrentOutput $ do
go $ withFilesNotInGit (not $ includeDotFiles o)
ifM isDirect
( go withFilesMaybeModified
- , go withFilesUnlocked
+ , unlessM versionSupportsUnlockedPointers $
+ go withFilesUnlocked
)
{- Pass file off to git-add. -}