]> khamidou — GitHub mirrors - arcanist.git/commit
Automatically answer excuse prompts if stdin is not a TTY
authorepriestley <git@epriestley.com>
Mon, 26 Aug 2013 12:41:32 +0000 (05:41 -0700)
committerepriestley <git@epriestley.com>
Mon, 26 Aug 2013 12:41:32 +0000 (05:41 -0700)
commit65c19ff0c072c9c7abd4580ecdf2e781da3ebe20
treef5e7b2a52be09516d637b110f6239eae44dfa623
parent0f30aca626f2477653062893558c9002aad803cf
Automatically answer excuse prompts if stdin is not a TTY

Summary: Fixes T3696. Currently, we abort. If stdin is not a TTY, we should just continue. A script which cares could conceivably run `arc lint` and `arc unit` separately, but it seems unlikely that any script would ever want to fail here.

Test Plan: Ran `echo -n '' | arc diff --create --verbatim` with a lint error and got a revision (D6720).

Reviewers: Firehed, btrahan, vrana

Reviewed By: btrahan

CC: aran
Maniphest Tasks: T3696

Differential Revision: https://secure.phabricator.com/D6721
src/workflow/ArcanistDiffWorkflow.php