X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=blobdiff_plain;f=bin%2Frgit;fp=bin%2Frgit;h=fc9a1f713bab325cae030646b705311bfb91ed32;hp=c791124c494c6d4cd275a336510b0a52d8639f68;hb=20ecc90aa6c17a07fd1200d0bf72d5918e53e106;hpb=a35a1fae17b8e75696ef1e5474aaa99222594a6a diff --git a/bin/rgit b/bin/rgit index c791124..fc9a1f7 100755 --- a/bin/rgit +++ b/bin/rgit @@ -3,10 +3,10 @@ use strict; use warnings; -use Carp qw/croak/; -use Config qw/%Config/; -use Cwd qw/cwd/; -use File::Spec::Functions qw/catfile path/; +use Carp qw/croak/; +use Config qw/%Config/; +use Cwd qw/cwd/; +use File::Spec (); # catfile, path use App::Rgit; use App::Rgit::Utils qw/:levels/; @@ -46,8 +46,8 @@ setpgrp 0, 0 if $Config{d_setpgrp}; my $git = $ENV{GIT_EXEC_PATH}; unless (defined $git) { - for (path) { - my $g = catfile $_, 'git'; + for (File::Spec->path) { + my $g = File::Spec->catfile($_, 'git'); if (-x $g) { $git = $g; last; @@ -191,7 +191,7 @@ Add a remote to all repositories in "/foo/bar" to their bare counterpart in C, L, L, L, L, L and L. +The core modules L, L, L, L, L, L and L. =head1 AUTHOR