This is a quick investigation into what happens to an encrypted file if git-crypt
is removed from the PATH. This could for example happen if git-crypt
is uninstalled or if an already checked out repository is accessed from a different environment or host.
As git-crypt
is currently implemented as a filter, its required
flag controls the behavior on failure (according to man gitattributes
). If it is not set or set to false
, a failure of git-crypt
(e.g. to re-encrypt the file) does not result in an error being raised.
To find out if the required flag is set, you can use the following command:
❯ git config filter.git-crypt.required
file:.git/config true