mirror of
https://github.com/AGWA/git-crypt.git
synced 2025-12-27 05:03:07 -08:00
At some point between Git 1.7.1 and Git 1.8.1.3, both 'git reset' and 'git status' stopped noticing that files were modified after their smudge filter changed. Consequentially, 'git reset --hard HEAD' would not decrypt existing encrypted files in the repo. This commit changes 'git-crypt init' to use 'git checkout -f HEAD /top/of/repo' instead, which does the job.
2.9 KiB
2.9 KiB