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