diff options
Diffstat (limited to 'Command/Add.hs')
-rw-r--r-- | Command/Add.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index beea48e0b..d1b2fbc7d 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -63,7 +63,8 @@ seek o = allowConcurrentOutput $ do giveup "--update --batch is not supported" | otherwise -> batchFiles gofile NoBatch -> do - let go a = a gofile (addThese o) + l <- workTreeItems (addThese o) + let go a = a gofile l unless (updateOnly o) $ go (withFilesNotInGit (not $ includeDotFiles o)) go withFilesMaybeModified |