From 88d78a82d8393d9051164a6fc2d449b149e3c7a4 Mon Sep 17 00:00:00 2001 From: Karsten Heymann Date: Fri, 20 Oct 2017 11:15:56 +0200 Subject: [PATCH] Don't list changed files on the command line For very large change sets, listing them on the command line exceeds the maximum command line length. This change lets git pick up the changed files instead. --- ldap-git-backup.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ldap-git-backup.in b/ldap-git-backup.in index ae2974e..4479e02 100644 --- a/ldap-git-backup.in +++ b/ldap-git-backup.in @@ -63,8 +63,7 @@ sub main { push(@filelist, $filename); delete($files_before{$filename}); } - $repo->command('add', @filelist) if @filelist; - $repo->command('rm', (keys %files_before)) if %files_before; + $repo->command('add', '-A'); $repo->command('commit', "--message=$commit_msg", "--date=$commit_date"); $repo->command('gc', '--quiet') if $gc;