Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15415280
D7702.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
968 B
Referenced Files
None
Subscribers
None
D7702.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 5:11 AM (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7381630
Default Alt Text
D7702.id.diff (968 B)
Attached To
Mode
D7702: Fix two issues with shell/config scripts for hosted repositories
Attached
Detach File
Event Timeline
Log In to Comment