fix breakage caused by recent commit
authorJoey Hess <joeyh@joeyh.name>
Tue, 26 Jan 2021 01:19:07 +0000 (21:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 26 Jan 2021 01:22:18 +0000 (21:22 -0400)
commitd4aac6428221f9069da85181ed37163bd8f11d58
tree9fc9a42ffe048f2d4072a0bb35db75463f4cd251
parent03b0b6101899cd4ba2fe74d1b95da0bea6177f3b
fix breakage caused by recent commit

34a535ebeaf483f6643f949ae774939650d74837 broke the test suite.
Getting a file started failing in one case, because the annex object did
not have its inode cached, so was not trusted to be unmodified.

This adds something very similar to what was added to linkAnnex
in commit 2e9341a47d437b5a7b14824d3e5b2864b059a850 -- if there are not
yet any inodes cached for a key, add the inode of the annex object when
adding the inode of the unlocked file.

Feels like this should be handled in a more principled way. How
do we know the addInodeCaches call in getMoveRaceRecovery just above
this change is currently correct? It doesn't add the annex object inode
cache. Ah well, maybe sometime when I've not had my entire evening eaten
by a reversion that the test suite caught as I was cooking dinner.
Command/Smudge.hs