@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.

Fix two issues with shell/config scripts for hosted repositories

Summary: Ref T4151. `-ne` is numeric in some/most/all shells; `exec --` apparently doens't always work.

Test Plan: Will make @zeeg test.

Reviewers: btrahan, zeeg

Reviewed By: zeeg

CC: zeeg, aran

Maniphest Tasks: T4151

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

+2 -2
+1 -1
resources/sshd/phabricator-ssh-hook.sh
··· 6 6 # NOTE: Replace this with the path to your Phabricator directory. 7 7 ROOT="/path/to/phabricator" 8 8 9 - if [ "$1" -ne "$VCSUSER" ]; 9 + if [ "$1" != "$VCSUSER" ]; 10 10 then 11 11 exit 1 12 12 fi
+1 -1
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
··· 162 162 163 163 $root = dirname(phutil_get_library_root('phabricator')); 164 164 $bin = $root.'/bin/commit-hook'; 165 - $cmd = csprintf('exec -- %s %s "$@"', $bin, $callsign); 165 + $cmd = csprintf('exec %s %s "$@"', $bin, $callsign); 166 166 167 167 $hook = "#!/bin/sh\n{$cmd}\n"; 168 168