From 814fa4dc0dbf43f7b2ec57803a155d03ba136a9b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Jul 2017 20:21:30 +0100 Subject: [PATCH] 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 --- debian/changelog | 3 +++ dgit | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 91bb617e..cd44b402 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,9 @@ dgit (3.11~) unstable; urgency=medium tree. * dgit: tolerate compressor terminating with SIGPIPE. Closes:#857694. + * dgit: honour more pre-tree git config options in our private + trees sharing the user's object store. In particular, + core.sharedRepository. Prompted by #867603. * infrastructure: Cope with new git-receive-pack which has quarantine feature: ie, work around #867702. * test suite: Cope with git restricting ext:: protocols. diff --git a/dgit b/dgit index edb24281..be277f3e 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; -- 2.30.2