X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=lib%2FApp%2FRgit%2FConfig.pm;h=1cac51d6a75854b7c2e8c9c78f216ec717d09106;hp=76a605085b6fc0a8777fde3669abe033505c18f2;hb=1c5bf56c6f80e4cd818c341b34ba3410f34ed514;hpb=caf4ff14ac06ea364ea51f725d041fd715e9682f diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index 76a6050..1cac51d 100644 --- a/lib/App/Rgit/Config.pm +++ b/lib/App/Rgit/Config.pm @@ -8,7 +8,7 @@ use Cwd qw/abs_path/; use File::Spec::Functions qw/file_name_is_absolute/; use App::Rgit::Repository; -use App::Rgit::Utils qw/validate :levels/; +use App::Rgit::Utils qw/:levels/; use constant IS_WIN32 => $^O eq 'MSWin32'; @@ -39,7 +39,10 @@ Creates a new configuration object based on the root directory C<$root> and usin =cut sub new { - my ($class, %args) = &validate; + my $class = shift; + $class = ref $class || $class; + + my %args = @_; my $root = $args{root}; return unless defined $root and -d $root;