Page MenuHomePhabricator

D7743.diff
No OneTemporary

D7743.diff

Index: src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
===================================================================
--- src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -159,7 +159,13 @@
$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
Sat, Jan 25, 12:25 PM (17 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7050563
Default Alt Text
D7743.diff (687 B)

Event Timeline