Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F67137
D7281.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
544 B
Referenced Files
None
Subscribers
None
D7281.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7281: Write ARCANIST into the environment while running arc
Attached
Detach File
Event Timeline
Log In to Comment