use strict;
use warnings;
-use Carp qw/croak/;
+use Carp ();
use Cwd qw/abs_path/;
use File::Spec::Functions qw/file_name_is_absolute/;
} else {
return unless -x $git;
}
+ $git = abs_path $git unless file_name_is_absolute $git;
my $conf = 'App::Rgit::Config::Default';
- eval "require $conf; 1" or croak "Couldn't load $conf: $@";
+ eval "require $conf; 1" or Carp::confess("Couldn't load $conf: $@");
my $r = App::Rgit::Repository->new(fake => 1);
return unless defined $r;
=head1 COPYRIGHT & LICENSE
-Copyright 2008-2009 Vincent Pit, all rights reserved.
+Copyright 2008,2009,2010 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.