Skip to content

Commit

Permalink
git-svn: just use Digest::MD5 instead of requiring it
Browse files Browse the repository at this point in the history
Historically, git-svn did not always use Digest::MD5 because
it did not use the SVN::Delta::Editor interfaces.  Nowadays
it does, and the requires make strace more noisy.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Eric Wong committed Feb 23, 2007
1 parent 24e22aa commit 90c1b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,7 @@ package SVN::Git::Fetcher;
use warnings;
use Carp qw/croak/;
use IO::File qw//;
use Digest::MD5;

# file baton members: path, mode_a, mode_b, pool, fh, blob, base
sub new {
Expand All @@ -1590,7 +1591,6 @@ sub new {
$self->{absent_dir} = {};
$self->{absent_file} = {};
$self->{gii} = $git_svn->tmp_index_do(sub { Git::IndexInfo->new });
require Digest::MD5;
$self;
}

Expand Down Expand Up @@ -1798,6 +1798,7 @@ package SVN::Git::Editor;
use warnings;
use Carp qw/croak/;
use IO::File;
use Digest::MD5;

sub new {
my ($class, $opts) = @_;
Expand Down Expand Up @@ -1826,7 +1827,6 @@ sub new {
$self->{rm} = { };
$self->{path_prefix} = length $self->{svn_path} ?
"$self->{svn_path}/" : '';
require Digest::MD5;
return $self;
}

Expand Down

0 comments on commit 90c1b15

Please sign in to comment.