At Wikimedia we shell-out to git-fat from inside another piece of software. As a result we occasionally hit the problem where a git smudge filter is not triggered since there's a fair chance that the os.utime call inside git-fat that is intended to invalidate the git index cache is triggered within the same second as a git checkout. In those instances, git will not trigger the smudge filter and the file in the checkout will remain orphaned.
We worked around this by ensuring that the timestamp on a file is modified by looking at its previous timestamp and adding 1 to it. Submitting as a pull-request here in case this might be generally useful.
At Wikimedia we shell-out to git-fat from inside another piece of software. As a result we occasionally hit the problem where a git smudge filter is not triggered since there's a fair chance that the
os.utime
call insidegit-fat
that is intended to invalidate the git index cache is triggered within the same second as a git checkout. In those instances, git will not trigger the smudge filter and the file in the checkout will remain orphaned.We worked around this by ensuring that the timestamp on a file is modified by looking at its previous timestamp and adding 1 to it. Submitting as a pull-request here in case this might be generally useful.