X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FApp%2FRgit%2FConfig.pm;h=dd6dff2af7f24ad8b2d7224255eea8878cf90bfd;hb=e295d1865b0480223b82fe2373ba79cf5485466e;hp=073f3ca6b6949698c5b955b7203aaca221dd4b15;hpb=5b2d059b23a0c56067d68d072a4df7b638ac94c3;p=perl%2Fmodules%2Frgit.git diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index 073f3ca..dd6dff2 100644 --- a/lib/App/Rgit/Config.pm +++ b/lib/App/Rgit/Config.pm @@ -58,6 +58,7 @@ sub new { } 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 Carp::confess("Couldn't load $conf: $@"); @@ -143,7 +144,7 @@ You can find documentation for this module with the perldoc command. =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.