author | Johannes Sixt <j6t@kdbg.org> | |
Sat, 4 Jul 2009 19:26:42 +0000 (21:26 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Jul 2009 09:45:50 +0000 (02:45 -0700) | ||
commit | c024beb56da679839d61f352d088b9a86823233a | |
tree | ce67d37c56575311d409d9b3090dd526d3178e9b | tree | snapshot |
parent | b99d5f40d6a5cba7d7cd7599063b3cd78aa4d219 | commit | diff |
run_command: report failure to execute the program, but optionally don't
In the case where a program was not found, it was still the task of the
caller to report an error to the user. Usually, this is an interesting case
but only few callers actually reported a specific error (though many call
sites report a generic error message regardless of the cause).
With this change the error is reported by run_command, but since there is
one call site in git.c that does not want that, an option is added to
struct child_process, which is used to turn the error off.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In the case where a program was not found, it was still the task of the
caller to report an error to the user. Usually, this is an interesting case
but only few callers actually reported a specific error (though many call
sites report a generic error message regardless of the cause).
With this change the error is reported by run_command, but since there is
one call site in git.c that does not want that, an option is added to
struct child_process, which is used to turn the error off.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-receive-pack.c | diff | blob | history | |
git.c | diff | blob | history | |
run-command.c | diff | blob | history | |
run-command.h | diff | blob | history | |
transport.c | diff | blob | history |