Page MenuHomePhorge

D25183.1737240969.diff
No OneTemporary

D25183.1737240969.diff

diff --git a/src/parser/ArcanistDiffParser.php b/src/parser/ArcanistDiffParser.php
--- a/src/parser/ArcanistDiffParser.php
+++ b/src/parser/ArcanistDiffParser.php
@@ -263,7 +263,9 @@
// searching for "diff -r" or "diff --git" in the text.
$this->saveLine();
$line = $this->nextLineThatLooksLikeDiffStart();
- if (!$this->tryMatchHeader($patterns, $line, $match)) {
+ if (!phutil_nonempty_string($line)) {
+ $failed_parse = true;
+ } else if (!$this->tryMatchHeader($patterns, $line, $match)) {
// Restore line before guessing to display correct error.
$this->restoreLine();
$failed_parse = true;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 18, 22:56 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129630
Default Alt Text
D25183.1737240969.diff (687 B)

Event Timeline