diff --git a/perl/Git.pm b/perl/Git.pm
index 8392a68333cd57b899962ef6a7a9ca80dd5d583d..ad0f5304450cb7acf86465027f5fd7046e2458b3 100644 (file)
--- a/perl/Git.pm
+++ b/perl/Git.pm
}
}
- if (not defined $opts{Repository} and not defined $opts{WorkingCopy}) {
- $opts{Directory} ||= '.';
+ if (not defined $opts{Repository} and not defined $opts{WorkingCopy}
+ and not defined $opts{Directory}) {
+ $opts{Directory} = '.';
}
- if ($opts{Directory}) {
+ if (defined $opts{Directory}) {
-d $opts{Directory} or throw Error::Simple("Directory not found: $!");
my $search = Git->repository(WorkingCopy => $opts{Directory});