31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-02 05:30:48 +00:00

Adjust parsePatch to account for binary files (Fix #74)

This commit is contained in:
Michael Babker 2015-03-08 13:06:48 -04:00
parent 3b9c3fcbcd
commit 055398c122

View File

@ -84,9 +84,15 @@ class PullModel extends \JModelBase
$file->action = 'deleted';
}
// Binary files are presently unsupported, use this to reset the parser in the meantime
if (strpos($line, 'Binary files') === 0)
{
$state = 0;
}
if (strpos($line, '@@') === 0)
{
$state = 0;
$state = 0;
/*
* Check if the patch tester is running in a production environment