summaryrefslogtreecommitdiff
path: root/Command/Add.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-10-29 19:30:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-10-29 19:30:48 -0400
commitef5330120c0b522ff159a5b3caba7a926236947b (patch)
tree5265d215e099bc6b2fcbcd85ac5dc3223665617c /Command/Add.hs
parent22e9f445ab74041321d731fd6290f2922384753b (diff)
bare cleanup
Diffstat (limited to 'Command/Add.hs')
-rw-r--r--Command/Add.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index 82287be0b..cd18f6c72 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -29,7 +29,7 @@ seek = [withFilesNotInGit start, withFilesUnlocked start]
- moving it into the annex directory and setting up the symlink pointing
- to its content. -}
start :: BackendFile -> CommandStart
-start p@(_, file) = notAnnexed file $ do
+start p@(_, file) = notBareRepo $ notAnnexed file $ do
s <- liftIO $ getSymbolicLinkStatus file
if isSymbolicLink s || not (isRegularFile s)
then stop