summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorTyler Cipriani <tcipriani@wikimedia.org>2018-08-20 17:35:45 -0600
committerTyler Cipriani <tcipriani@wikimedia.org>2018-08-20 17:35:45 -0600
commit2fad58fd0631ed8dcb77358bb9b80e4cd091d3fe (patch)
tree8230cf85d4af34c5b5376302d7883850293b330f /test.sh
parent75fb63d034878cc5be2d4339e52bb6b6983d0626 (diff)
downloadgit-fat-2fad58fd0631ed8dcb77358bb9b80e4cd091d3fe.tar.gz
Invalidate git index cache before smudging
Occasionally we hit the problem where a git smudge filter is not triggered -- for instance, when a file in a working tree's lstat info matches the file in the git index cache. (see racy-git.txt in the git documentation) The previous work-around was touching the git-fat file; however, in cases where git fat checkout is automated there is a chance that touching the file will make no modification to the lstat information (when a touch happens in 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 can work around this by ensuring that the timestamp on a file is modified by looking at its previous timestamp and adding 1 to it.
Diffstat (limited to 'test.sh')
0 files changed, 0 insertions, 0 deletions