From: Ian Jackson Date: Sat, 24 Sep 2016 10:19:42 +0000 (+0100) Subject: dgit: Turn gc.auto off in our hidden working tree setups X-Git-Tag: archive/debian/2.0~139 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=64d159f5dd06cbe512cfb534a8391d691b30ec6c;p=dgit.git dgit: Turn gc.auto off in our hidden working tree setups This avoids potential accidents: git gc --auto might otherwise run and do very undesirable things to the user's working tree. (I haven't been able to trigger such a situation deliberately and none has been reported, luckily...) Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index ee5f7d0b..7143fe7d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -48,6 +48,7 @@ dgit (1.5~~) unstable; urgency=medium source. Fixes bad Perl poetry syntax. Closes:#829121. * When synthesing a commit from a .dsc from the archive, stop internal git reset from printing a confusing message about HEAD. + * Turn off git gc in the private working areas. Test suite: * When sbuild fails, do not crash due to sed not finding the log diff --git a/dgit b/dgit index 39efa04a..b1cb9b25 100755 --- a/dgit +++ b/dgit @@ -1340,6 +1340,7 @@ sub prep_ud (;$) { sub mktree_in_ud_here () { runcmd qw(git init -q); + runcmd qw(git config gc.auto 0); rmtree('.git/objects'); symlink '../../../../objects','.git/objects' or die $!; }