X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;h=89f496d7e72f8a698a6d8bdbd7b817ad354edf4f;hb=0b0c7e0ce2f0f17cacef7eb3159fc9de1850bf37;hp=54ba4d65f6a3cc2910b13bed2cbe9b13199763c5;hpb=4523f77bba9b97925030bcf641584a4a74819178;p=dgit.git diff --git a/dgit b/dgit index 54ba4d65..89f496d7 100755 --- a/dgit +++ b/dgit @@ -1705,19 +1705,7 @@ 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 - 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; - } - rmtree('.git/objects'); - symlink '../../../../objects','.git/objects' or die $!; - setup_gitattrs(1); + workarea_setup $gitcfgs{local}; } sub git_write_tree () { @@ -3378,7 +3366,7 @@ END open GAO, "> $af.new" or die $!; print GAO <