Page MenuHomePhabricator

D7743.id17832.diff
No OneTemporary

D7743.id17832.diff

Index: src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
===================================================================
--- src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -162,7 +162,9 @@
$root = dirname(phutil_get_library_root('phabricator'));
$bin = $root.'/bin/commit-hook';
- $cmd = csprintf('exec %s %s "$@"', $bin, $callsign);
+
+ $full_php_path = Filesystem::resolveBinary('php');
+ $cmd = csprintf('exec %s -f %s %s "$@"', $full_php_path, $bin, $callsign);
$hook = "#!/bin/sh\n{$cmd}\n";

File Metadata

Mime Type
text/plain
Expires
Mar 19 2025, 6:44 PM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7711819
Default Alt Text
D7743.id17832.diff (654 B)

Event Timeline