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