Fix inverted logic in last release's fix for data loss bug, that caused git-annex sync on FAT or other crippled filesystems to add symlink standin files to the annex.

This commit is contained in:
Joey Hess 2013-07-30 16:07:47 -04:00
parent a8475e18c9
commit 7b0970b340
3 changed files with 7 additions and 2 deletions

View file

@ -37,10 +37,10 @@ isAnnexLink file = maybe Nothing (fileKey . takeFileName) <$> getAnnexLinkTarget
getAnnexLinkTarget :: FilePath -> Annex (Maybe LinkTarget)
getAnnexLinkTarget file = ifM (coreSymlinks <$> Annex.getGitConfig)
( check readSymbolicLink $
return Nothing
, check readSymbolicLink $
check probefilecontent $
return Nothing
, check readSymbolicLink $
return Nothing
)
where
check getlinktarget fallback = do