Oddly, the second write did not cause it to lose the mtime inherited
from the file being added, although the mtime was not provided to that
write but only to the first. I don't quite know why that worked before!
addSymlink :: RawFilePath -> Key -> Maybe InodeCache -> Annex ()
addSymlink file key mcache = do
- l <- makeLink file key mcache
- addAnnexLink l file
+ linktarget <- makeLink file key mcache
+ stageSymlink file =<< hashSymlink linktarget
{- Parameters to pass to git add, forcing addition of ignored files.
-