Code

error_routine: use parent's stderr if exec fails
authorClemens Buchacher <drizzd@aon.at>
Wed, 27 Jul 2011 21:32:34 +0000 (23:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Aug 2011 01:27:07 +0000 (18:27 -0700)
commit3bc4181fde899e02aff89f7c0a47f18d37311cb3
treeeacd31e4e1a91b6ad7fb2317b007c5203675e0e6
parent2579e1d2936ad4e385ef21e5c346d9853d7faa01
error_routine: use parent's stderr if exec fails

The new process's error output may be redirected elsewhere, but if
the exec fails, output should still go to the parent's stderr. This
has already been done for the die_routine. Do the same for
error_routine.

Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
run-command.c
usage.c