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.
1 parent e012fbb commit 38f9a93Copy full SHA for 38f9a93
perl/Git.pm
@@ -188,7 +188,8 @@ sub repository {
188
};
189
190
if ($dir) {
191
- $dir =~ m#^/# or $dir = $opts{Directory} . '/' . $dir;
+ _verify_require();
192
+ File::Spec->file_name_is_absolute($dir) or $dir = $opts{Directory} . '/' . $dir;
193
$opts{Repository} = abs_path($dir);
194
195
# If --git-dir went ok, this shouldn't die either.
0 commit comments