avoid smudge filter returning invalid content
authorJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2015 21:53:37 +0000 (17:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 11 Dec 2015 22:01:50 +0000 (18:01 -0400)
commit42caf42857f9c993dc96603c4938213f84068d52
treefd52068428bb4a55f5e7968b138d2bb85b56ca6a
parentcc2d78870cd6e9d55b6e2ec46abfb30a8fd4debb
avoid smudge filter returning invalid content

1. git add file
2. git commit
3. modify file
4. git commit
5. git reset HEAD^

Before this fix, that resulted in git saying the file was modified. And
indeed, it didn't have the content it should in the just checked out ref,
because step 3 modified the object file for the old key.
Command/Smudge.hs