fix: use old method for calling the git plugin
This commit is contained in:
1 parent
34768ca5b4
commit
dc20a38756
1 file changed
+13
-5
@@ -107,11 +107,19 @@ fi
|
|||||||
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
|
if [[ -n "$SSH_ORIGINAL_COMMAND" ]]; then
|
||||||
export -n SSH_ORIGINAL_COMMAND
|
export -n SSH_ORIGINAL_COMMAND
|
||||||
exit_code=0
|
exit_code=0
|
||||||
set -f
|
if [[ $1 =~ git-* ]] || [[ $1 =~ git:* ]]; then
|
||||||
xargs $0 <<<$SSH_ORIGINAL_COMMAND
|
set -f
|
||||||
exit_code=$?
|
$0 $SSH_ORIGINAL_COMMAND
|
||||||
set +f
|
exit_code=$?
|
||||||
exit $exit_code
|
set +f
|
||||||
|
exit $?
|
||||||
|
else
|
||||||
|
set -f
|
||||||
|
xargs $0 <<<$SSH_ORIGINAL_COMMAND
|
||||||
|
exit_code=$?
|
||||||
|
set +f
|
||||||
|
exit $exit_code
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! dokku_auth "$@"; then
|
if ! dokku_auth "$@"; then
|
||||||
|
|||||||
Reference in new issue
Block a user