@matheusbsbs / matheus-bagliano / commits / af788a6eb5
Fork 0

git-svn: Don't call git-repack anymore

In a moment, we'll start calling git-gc --auto instead, since it is a better fit to what we're trying to accomplish. The command line options are still accepted, but don't have any effect, and we warn the user about that. Signed-off-by: Karl Hasselström <kha@treskal.com> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karl Hasselström committed Feb 3, 2008 at 17:56 UTC af788a6eb510c1df4a3222b0403a088789ca2bac
1 file changed +3 -11
git-svn.perl
+3 -11
@@ -1247,7 +1247,6 @@ use File::Path qw/mkpath/;
1247 use File::Copy qw/copy/;
1248 use IPC::Open3;
1249
1250 -my $_repack_nr;
1250 # properties that we do not log:
1251 my %SKIP_PROP;
1252 BEGIN {
@@ -1408,9 +1407,9 @@ sub read_all_remotes {
1407 }
1408
1409 sub init_vars {
1411 - $_repack = 1000 unless (defined $_repack && $_repack > 0);
1412 - $_repack_nr = $_repack;
1413 - $_repack_flags ||= '-d';
1410 + if (defined $_repack || defined $_repack_flags) {
1411 + warn "Repack options are obsolete; they have no effect.\n";
1412 + }
1413 }
1414
1415 sub verify_remotes_sanity {
@@ -2149,13 +2148,6 @@ sub do_git_commit {
2148 0, $self->svm_uuid);
2149 }
2150 print " = $commit ($self->{ref_id})\n";
2152 - if ($_repack && (--$_repack_nr == 0)) {
2153 - $_repack_nr = $_repack;
2154 - # repack doesn't use any arguments with spaces in them, does it?
2155 - print "Running git repack $_repack_flags ...\n";
2156 - command_noisy('repack', split(/\s+/, $_repack_flags));
2157 - print "Done repacking\n";
2158 - }
2151 return $commit;
2152 }
2153