diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index 84f29b7b..47970967 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -2104,6 +2104,12 @@ EOTEXT $messages = $repository_api->getCommitMessageLog(); + if (count($messages) == 1) { + // If there's only one message, assume this is an amend-based workflow and + // that using it to prefill doesn't make sense. + return null; + } + $local = $this->loadActiveLocalCommitInfo(); $hashes = ipull($local, null, 'commit');