diff options
author | Karl Hasselström <kha@treskal.com> | 2008-02-03 17:56:12 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-03 12:59:24 -0800 |
commit | af788a6eb510c1df4a3222b0403a088789ca2bac (patch) | |
tree | b7d59d8c2f2e5644f1934ca14275cd86ed5d2714 /git-svn.perl | |
parent | 36ee4ee40e1851442b0b075870cd5de5df6ee2b6 (diff) | |
download | git-af788a6eb510c1df4a3222b0403a088789ca2bac.tar.gz git-af788a6eb510c1df4a3222b0403a088789ca2bac.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/git-svn.perl b/git-svn.perl index 75e97cc72..074068c64 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1247,7 +1247,6 @@ use File::Path qw/mkpath/; use File::Copy qw/copy/; use IPC::Open3; -my $_repack_nr; # properties that we do not log: my %SKIP_PROP; BEGIN { @@ -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 { @@ -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; } |