diff --git a/perl/Git.pm b/perl/Git.pm
index e9f8c9c048f3e9b7c0e3e492078c1d30a2044d78..7d7f2b1d367b505676032878615b2843eb64ed7b 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});