diff --git a/resources/sshd/phabricator-ssh-hook.sh b/resources/sshd/phabricator-ssh-hook.sh index 30f5e77b81..fc7de81dad 100755 --- a/resources/sshd/phabricator-ssh-hook.sh +++ b/resources/sshd/phabricator-ssh-hook.sh @@ -6,7 +6,7 @@ VCSUSER="vcs-user" # 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 diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php index 2198eb46ea..5e73c0e6db 100644 --- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php +++ b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php @@ -162,7 +162,7 @@ final class PhabricatorRepositoryPullEngine $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";