use strict;
use warnings;
-use Cwd (); # cwd, abs_path
+use Cwd (); # cwd
use File::Spec (); # canonpath, catdir, splitdir, abs2rel
use POSIX (); # WIFEXITED WEXITSTATUS WIFSIGNALED WTERMSIG SIGINT SIGQUIT
+use App::Rgit::Utils (); # abs_path
+
my ($WIFEXITED, $WEXITSTATUS, $WIFSIGNALED, $WTERMSIG);
BEGIN {
=head1 VERSION
-Version 0.06
+Version 0.07
=cut
-our $VERSION = '0.06';
+our $VERSION = '0.07';
=head1 DESCRIPTION
my $dir = $args{dir};
if (defined $dir) {
- $dir = Cwd::abs_path($dir);
+ $dir = App::Rgit::Utils::abs_path($dir);
} else {
$dir = Cwd::cwd;
}
if ($WIFSIGNALED->($?)) {
$sig = $WTERMSIG->($?);
$conf->warn("git died with signal $sig\n");
- if ($sig == POSIX::SIGINT || $sig == POSIX::SIGQUIT) {
+ if ($sig == POSIX::SIGINT() || $sig == POSIX::SIGQUIT()) {
$conf->err("Aborting\n");
exit $sig;
}