addSmallOverridden calls getFileStatus and then checks the result with
isSymbolicLink. getFileStatus dereferences symbolic links, so
isSymbolicLink will always return false (assuming the getFileStatus
call doesn't fail on a broken link). Use getSymbolicLinkStatus
instead.
addSmallOverridden file = do
showNote "adding content to git repository"
let file' = fromRawFilePath file
- s <- liftIO $ getFileStatus file'
+ s <- liftIO $ getSymbolicLinkStatus file'
if isSymbolicLink s
then addFile file
else do