Page MenuHomePhabricator

D7702.diff
No OneTemporary

D7702.diff

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";

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 8, 9:35 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381630
Default Alt Text
D7702.diff (968 B)

Event Timeline