From 3b3bc3dd3983f8cca6f193d6e4fa84f1bd08d79d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 29 Apr 2026 22:48:49 -0400 Subject: [PATCH] fix: scope deploy output redirect to git-hook only The previous condition used a bash regex `git-*` that matched git-receive-pack and git-upload-pack, interposing a tee chain on the binary git wire protocol and producing `fatal: protocol error: bad line length character: !` on every push. Restrict the redirect to the pre-receive hook, where tee passthrough is safe because git-receive-pack forwards hook output via the protocol sideband. --- dokku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokku b/dokku index 067cc550e..7e98c7174 100755 --- a/dokku +++ b/dokku @@ -188,7 +188,7 @@ execute_dokku_cmd() { set -- "$PLUGIN_CMD" "$@" fi - if [[ $PLUGIN_NAME =~ git-* ]] || [[ "$PLUGIN_NAME" == "ps:rebuild" ]] || [[ "$PLUGIN_NAME" == "ps:restart" ]] || [[ "$PLUGIN_NAME" == "deploy" ]]; then + if [[ "$PLUGIN_NAME" == "git-hook" ]] || [[ "$PLUGIN_NAME" == "ps:rebuild" ]] || [[ "$PLUGIN_NAME" == "ps:restart" ]] || [[ "$PLUGIN_NAME" == "deploy" ]]; then export DOKKU_REDIRECT_OUTPUT=true exec &> >(tee >(tee | logger -i -t "dokku-${DOKKU_PID}")) fi