Page MenuHomePhabricator

D7281.diff

diff --git a/scripts/arcanist.php b/scripts/arcanist.php
--- a/scripts/arcanist.php
+++ b/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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/32/wi/mbq4cyn23k7cpmmh
Default Alt Text
D7281.diff (544 B)

Event Timeline