Skip to content

Commit

Permalink
http: stderr should dup stdout for non-git command output
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaramc committed Jun 5, 2014
1 parent b5df869 commit 766057a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gitolite-shell
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ sub http_simulate_ssh_connection {
$ENV{SSH_ORIGINAL_COMMAND} = $verb;
$ENV{SSH_ORIGINAL_COMMAND} .= " $args" if $args;
http_print_headers(); # in preparation for the eventual output!

# we also need to pipe STDERR out via STDOUT, else the user doesn't see those messages!
open(STDERR, ">&STDOUT") or _die "Can't dup STDOUT: $!";
}
$ENV{SSH_CONNECTION} = "$ENV{REMOTE_ADDR} $ENV{REMOTE_PORT} $ENV{SERVER_ADDR} $ENV{SERVER_PORT}";
}
Expand Down

0 comments on commit 766057a

Please sign in to comment.