Closed ghost closed 9 years ago
Adding each folder containing a submodule to .gitattributes with !filter !diff solves the problem but it would be easier if git-crypt could ignore submodules by default.
Thanks for reporting this. I've pushed a fix. git-crypt status
now ignores non-files in the tree.
Another issue when using git-crypt to encrypt an entire repository that includes sub-modules is making sure that the .gitmodules
file isn't encrypted. git-crypt can't prevent this; you have to put a .gitmodules !filter !diff
entry in .gitattributes
yourself. I added a note to the README about this.
It looks like git-crypt does not behave well when there are submodules. Maybe there is a way to prevent this problem by adding some lines in .gitattributes but here is a way to reproduce the problem: