Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPatchWorkflow.php
Context not available. | |||||
case self::SOURCE_PATCH: | case self::SOURCE_PATCH: | ||||
if ($param == '-') { | if ($param == '-') { | ||||
$patch = @file_get_contents('php://stdin'); | $patch = @file_get_contents('php://stdin'); | ||||
if (!strlen($patch)) { | if (!@strlen($patch)) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht('Failed to read patch from stdin!')); | pht('Failed to read patch from stdin!')); | ||||
} | } | ||||
Context not available. | |||||
"\n<bg:red>** %s **</bg>\n", | "\n<bg:red>** %s **</bg>\n", | ||||
pht('Patch Failed!')); | pht('Patch Failed!')); | ||||
$stderr = $ex->getStderr(); | $stderr = $ex->getStderr(); | ||||
if (preg_match('/case-folding collision/', $stderr)) { | if (@preg_match('/case-folding collision/', $stderr)) { | ||||
echo phutil_console_wrap( | echo phutil_console_wrap( | ||||
phutil_console_format( | phutil_console_format( | ||||
"\n<bg:yellow>** %s **</bg> %s\n", | "\n<bg:yellow>** %s **</bg> %s\n", | ||||
Context not available. | |||||
->editInteractively(); | ->editInteractively(); | ||||
$commit_message = ArcanistCommentRemover::removeComments($commit_message); | $commit_message = ArcanistCommentRemover::removeComments($commit_message); | ||||
if (!strlen(trim($commit_message))) { | if (!@strlen(trim($commit_message))) { | ||||
throw new ArcanistUserAbortException(); | throw new ArcanistUserAbortException(); | ||||
} | } | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0