Page MenuHomePhabricator

D7702.diff

diff --git a/resources/sshd/phabricator-ssh-hook.sh b/resources/sshd/phabricator-ssh-hook.sh
--- a/resources/sshd/phabricator-ssh-hook.sh
+++ b/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
diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ b/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";

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/xg/7e/6qnw2pvfj2wmnvcu
Default Alt Text
D7702.diff (967 B)

Event Timeline