Skip to content

Commit

Permalink
git-svn: Don't call git-repack anymore
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Karl Hasselström authored and Junio C Hamano committed Feb 3, 2008
1 parent 36ee4ee commit af788a6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,6 @@ package Git::SVN;
use File::Copy qw/copy/;
use IPC::Open3;

my $_repack_nr;
# properties that we do not log:
my %SKIP_PROP;
BEGIN {
Expand Down Expand Up @@ -1408,9 +1407,9 @@ sub read_all_remotes {
}

sub init_vars {
$_repack = 1000 unless (defined $_repack && $_repack > 0);
$_repack_nr = $_repack;
$_repack_flags ||= '-d';
if (defined $_repack || defined $_repack_flags) {
warn "Repack options are obsolete; they have no effect.\n";
}
}

sub verify_remotes_sanity {
Expand Down Expand Up @@ -2149,13 +2148,6 @@ sub do_git_commit {
0, $self->svm_uuid);
}
print " = $commit ($self->{ref_id})\n";
if ($_repack && (--$_repack_nr == 0)) {
$_repack_nr = $_repack;
# repack doesn't use any arguments with spaces in them, does it?
print "Running git repack $_repack_flags ...\n";
command_noisy('repack', split(/\s+/, $_repack_flags));
print "Done repacking\n";
}
return $commit;
}

Expand Down

0 comments on commit af788a6

Please sign in to comment.