From 814fa4dc0dbf43f7b2ec57803a155d03ba136a9b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Jul 2017 20:21:30 +0100 Subject: dgit: honour more pre-tree git config options in our private trees These share the user's object store and we should manipulate the object store the way the user wants. In particular, core.sharedRepository is important. Prompted by #867603, which is the same bug in dgit-badcommit-fixup. Signed-off-by: Ian Jackson --- dgit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index edb2428..be277f3 100755 --- a/dgit +++ b/dgit @@ -1713,7 +1713,10 @@ sub prep_ud (;$) { sub mktree_in_ud_here () { runcmd qw(git init -q); runcmd qw(git config gc.auto 0); - foreach my $copy (qw(user.email user.name user.useConfigOnly)) { + foreach my $copy (qw(user.email user.name user.useConfigOnly + core.sharedRepository + core.compression core.looseCompression + core.bigFileThreshold core.fsyncObjectFiles)) { my $v = $gitcfgs{local}{$copy}; next unless $v; runcmd qw(git config), $copy, $_ foreach @$v; -- cgit v1.2.3