error 7: very big file list to add to git
There is a problem when there is many ldap objects that results in many ldif files to be commited. Please review this problem.
- Can you tell us what magnitude you're talking about?
- What is the exact error message you're getting?
- Which git version did this happen with?
-
Can you tell us what magnitude you're talking about? 104899 ldap objects that result in the same number of ldif files.
-
What is the exact error message you're getting? It gives a dump of the list of all files separated by spaces to stdout that I omit below:
exec "add <list of ldif files separated by spaces> ": command returned error: 7
I'm using debian 9 package to install the scripts: Package: ldap-git-backup Version: 1.0.7-1
- Which git version did this happen with? git version 2.11.0
To correct the problem I just have done a find for all files ending in ldif and then exec git add for each one.
I didn't test with git add -A that would do the same, since in the backup directory only exists the ldif files. I only realise that after.
Please have a look at #6, which probably fixes this bug. The details are explained in commit 55d5d7e0702cc8cdddae5531f6dae5d71560e595.
This does git add and git rm in multiple chunks, if the total argument length exceeds 1048576 characters.