We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2355a3 + 11b8a41 commit e5bde19Copy full SHA for e5bde19
perl/Git.pm
@@ -166,11 +166,12 @@ sub repository {
166
}
167
168
169
- if (not defined $opts{Repository} and not defined $opts{WorkingCopy}) {
170
- $opts{Directory} ||= '.';
+ if (not defined $opts{Repository} and not defined $opts{WorkingCopy}
+ and not defined $opts{Directory}) {
171
+ $opts{Directory} = '.';
172
173
- if ($opts{Directory}) {
174
+ if (defined $opts{Directory}) {
175
-d $opts{Directory} or throw Error::Simple("Directory not found: $!");
176
177
my $search = Git->repository(WorkingCopy => $opts{Directory});
0 commit comments