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 fbd03b9 commit 2a86d18Copy full SHA for 2a86d18
src/Reports/Gitblame.php
@@ -70,7 +70,7 @@ protected function getBlameContent($filename)
70
$cwd = getcwd();
71
72
chdir(dirname($filename));
73
- $command = 'git blame --date=short "'.$filename.'" 2>&1';
+ $command = 'git blame --date=short "'.basename($filename).'" 2>&1';
74
$handle = popen($command, 'r');
75
if ($handle === false) {
76
$error = 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
0 commit comments