AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.11k stars 472 forks source link

'git checkout failed' - Argument list too long #194

Closed aljoshare closed 4 years ago

aljoshare commented 4 years ago

The command 'git-crypt unlock' failed with the error 'git: Argument list too long' on MacOS 10.15 and a repository size of 6977 files. The error probably occurs because of a small ARG_MAX value on MacOS. On Ubuntu, the command succeeded without problems.

I think the error could be fixed by changing the way the git checkout command is executed. It might be possible to split up the command and restrict the number of parameters of each call to ARG_MAX.