summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-24 11:19:42 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-26 01:16:54 +0100
commit64d159f5dd06cbe512cfb534a8391d691b30ec6c (patch)
treea599864666159ee98d4a82b144dd750a0513e972 /dgit
parentea6fc0f9f4d518697f7f9f65ea342a2cef569c53 (diff)
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit1
1 files changed, 1 insertions, 0 deletions
diff --git a/dgit b/dgit
index 39efa04..b1cb9b2 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 $!;
}