ldap-git-backup icon indicating copy to clipboard operation
ldap-git-backup copied to clipboard

error 7: very big file list to add to git

Open samuelbernardo opened this issue 8 years ago • 4 comments

There is a problem when there is many ldap objects that results in many ldif files to be commited. Please review this problem.

samuelbernardo avatar Sep 10 '17 00:09 samuelbernardo

  • 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?

xtaran avatar Sep 10 '17 15:09 xtaran

  • 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

samuelbernardo avatar Sep 11 '17 08:09 samuelbernardo

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.

samuelbernardo avatar Sep 11 '17 08:09 samuelbernardo

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.

rda0 avatar Jan 04 '18 15:01 rda0