Page MenuHomePhabricator

D14187.diff
No OneTemporary

D14187.diff

diff --git a/src/parser/ArcanistBaseCommitParser.php b/src/parser/ArcanistBaseCommitParser.php
--- a/src/parser/ArcanistBaseCommitParser.php
+++ b/src/parser/ArcanistBaseCommitParser.php
@@ -133,7 +133,13 @@
case 'prompt':
$reason = pht('it is what you typed when prompted.');
$this->api->setBaseCommitExplanation($reason);
- return phutil_console_prompt(pht('Against which commit?'));
+ $result = phutil_console_prompt(pht('Against which commit?'));
+ if (!strlen($result)) {
+ // Allow the user to continue to the next rule by entering no
+ // text.
+ return null;
+ }
+ return $result;
case 'local':
case 'user':
case 'project':

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 11:53 PM (20 h, 53 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6985870
Default Alt Text
D14187.diff (741 B)

Event Timeline