Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18099530
D18610.id44686.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
642 B
Referenced Files
None
Subscribers
None
D18610.id44686.diff
View Options
diff --git a/src/filesystem/binary/PhutilMercurialBinaryAnalyzer.php b/src/filesystem/binary/PhutilMercurialBinaryAnalyzer.php
--- a/src/filesystem/binary/PhutilMercurialBinaryAnalyzer.php
+++ b/src/filesystem/binary/PhutilMercurialBinaryAnalyzer.php
@@ -9,7 +9,13 @@
const CAPABILITY_INJECTION = 'injection';
protected function newBinaryVersion() {
- list($err, $stdout) = exec_manual('hg --version --quiet');
+ $future = id(new ExecFuture('hg --version --quiet'))
+ ->setEnv(
+ array(
+ 'HGPLAIN' => 1,
+ ));
+
+ list($err, $stdout) = $future->resolve();
if ($err) {
return null;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 10, 5:56 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8330450
Default Alt Text
D18610.id44686.diff (642 B)
Attached To
Mode
D18610: Pass HGPLAIN in the environment when testing "hg" version
Attached
Detach File
Event Timeline
Log In to Comment