Skip to content

Commit

Permalink
fixed wrong handling of unidiff output for svn 1.7 (fixed #333)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Jul 11, 2012
1 parent 903762d commit 2bf89be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions comp.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,18 @@ function clearVars() {
if ($debug) print 'Skipping: '.$line.'<br />';

while ($line = trim(fgets($diff))) {
if (version_compare($config->getSubversionVersion(), '1.7.0') >= 0) {
if (!strncmp($line, 'Index: ', 7)) {
break;
}
if (!strncmp($line, '##', 2) || $line == '\ No newline at end of file') {
continue;
}
}
$listing[$index++]['info'] = escape(toOutputEncoding($line));
clearVars();
}
$getLine = false;

continue;
}
Expand Down

0 comments on commit 2bf89be

Please sign in to comment.