Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug #19483 : Blame Reports fail with space in directory name

  • Loading branch information...
commit 3710b1d2b7965d5534639a5f6e10519346048872 1 parent 3ea1bda
Greg Sherwood gsherwood authored
2  CodeSniffer/Reports/Gitblame.php
View
@@ -106,7 +106,7 @@ protected function getBlameContent($filename)
exit(2);
}
- $command = 'git blame --date=short '.$filename;
+ $command = 'git blame --date=short "'.$filename.'"';
$handle = popen($command, 'r');
if ($handle === false) {
echo 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
2  CodeSniffer/Reports/Hgblame.php
View
@@ -107,7 +107,7 @@ protected function getBlameContent($filename)
exit(2);
}
- $command = 'hg blame -u -d -v '.$filename;
+ $command = 'hg blame -u -d -v "'.$filename.'"';
$handle = popen($command, 'r');
if ($handle === false) {
echo 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
2  CodeSniffer/Reports/Svnblame.php
View
@@ -74,7 +74,7 @@ protected function getBlameContent($filename)
echo 'Getting SVN blame info for '.basename($filename).'... ';
}
- $command = 'svn blame '.$filename;
+ $command = 'svn blame "'.$filename.'"'
$handle = popen($command, 'r');
if ($handle === false) {
echo 'ERROR: Could not execute "'.$command.'"'.PHP_EOL.PHP_EOL;
1  package.xml
View
@@ -49,6 +49,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Fixed bug #19469 : PHP_CodeSniffer_File::getMemberProperties() sets wrong scope
- Fixed bug #19471 : phpcs on Windows, when using Zend standard, doesn't catch problems
-- Thanks to Ivan Habunek for the patch
+ - Fixed bug #19483 : Blame Reports fail with space in directory name
</notes>
<contents>
<dir name="/">
Please sign in to comment.
Something went wrong with that request. Please try again.