Skip to contentSkip to conversation

oe-git-proxy: Redirect error messages to STDERR

PATCH Darren Hart 2 participants 2 messages Mar 27, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Darren Hart

author Reviewed-by
#1 lore raw
Quoted 6 lines · Juro Bystricky

oe-git-proxy script needs socat. If socat is not found, an error message is issued on STDOUT. This leads to a misleading git message:

fatal: protocol error: bad line length character: ERRO

Quoted 7 lines

instead of the intended message:

ERROR: socat binary not in PATH

Redirecting the error message to STDERR fixes this issue.

Thanks Juro, good fix.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#2 lore raw

Hi Juro,

Quoted 10 lines · Darren Hart
Quoted 10 lines

oe-git-proxy script needs socat. If socat is not found, an error message is issued on STDOUT. This leads to a misleading git message:

fatal: protocol error: bad line length character: ERRO

instead of the intended message:

ERROR: socat binary not in PATH

Quoted 8 lines
Quoted 3 lines

Redirecting the error message to STDERR fixes this issue.

Thanks Juro, good fix.

I never saw the original mail, can you re-send it to the list please?

Ross