Page MenuHomePhabricator

D7281.diff
No OneTemporary

D7281.diff

Index: scripts/arcanist.php
===================================================================
--- scripts/arcanist.php
+++ scripts/arcanist.php
@@ -150,6 +150,11 @@
$workflow->setWorkingDirectory($working_directory);
$workflow->parseArguments($args);
+ // Write the command into the environment so that scripts (for example, local
+ // Git commit hooks) can detect that they're being run via `arc` and change
+ // their behaviors.
+ putenv('ARCANIST='.$command);
+
if ($force_conduit_version) {
$workflow->forceConduitVersion($force_conduit_version);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 8:36 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704115
Default Alt Text
D7281.diff (578 B)

Event Timeline