@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set php PATH for repository's hook

Summary:
~~Set PATH for repository's hook, so the environment.append-paths can used~~
repository's hook may can't find php path if user's profile like bash_profile is not loaded.

Test Plan: check the hook generated is contain the right path

Reviewers: epriestley, #blessed_reviewers

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7743

authored by

iodragon and committed by
epriestley
f981d50f 5ce0edaf

+7 -1
+7 -1
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
··· 159 159 160 160 $root = dirname(phutil_get_library_root('phabricator')); 161 161 $bin = $root.'/bin/commit-hook'; 162 - $cmd = csprintf('exec %s %s "$@"', $bin, $callsign); 162 + 163 + $full_php_path = Filesystem::resolveBinary('php'); 164 + $cmd = csprintf( 165 + 'exec %s -f %s -- %s "$@"', 166 + $full_php_path, 167 + $bin, 168 + $callsign); 163 169 164 170 $hook = "#!/bin/sh\n{$cmd}\n"; 165 171