mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-26 04:40:41 -08:00
Starting with Git 2.2.2, `git checkout -f HEAD` no longer checks out files if their mtimes haven't changed. This causes files to remain encrypted in the work tree after running `git-crypt unlock`, and to remain decrypted after running `git-crypt lock`'. To fix this, git-crypt now figures out what files are encrypted (by checking `git check-attr` on every file output by `git ls-files`), touches those files, and then runs `git checkout` on them.
50 KiB
50 KiB