diff options
author | Johannes Sixt <j6t@kdbg.org> | 2009-06-21 23:16:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-21 20:19:21 -0700 |
commit | 2ff4d1ab9ef6660c88020ddaadc410157e130cdc (patch) | |
tree | f825fb2a925e3301ace34dd1cd4de7706e6ecfb3 /t/t9102-git-svn-deep-rmdir.sh | |
parent | upload-pack: squelch progress indicator if client cannot see it (diff) | |
download | tgif-2ff4d1ab9ef6660c88020ddaadc410157e130cdc.tar.xz |
receive-pack: do not send error details to the client
If the objects that a client pushes to the server cannot be processed for
any reason, an error is reported back to the client via the git protocol.
We used to send quite detailed information if a system call failed if
unpack-objects is run. This can be regarded as an information leak. Now we
do not send any error details like we already do in the case where
index-pack failed.
Errors in system calls as well as the exit code of unpack-objects and
index-pack are now reported to stderr; in the case of a local push or via
ssh these messages still go to the client, but that is OK since these forms
of access to the server assume that the client can be trusted. If
receive-pack is run from git-daemon, then the daemon should put the error
messages into the syslog.
With this reasoning a new status report is added for the post-update-hook;
untrusted (i.e. daemon's) clients cannot observe its status anyway, others
may want to know failure details.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9102-git-svn-deep-rmdir.sh')
0 files changed, 0 insertions, 0 deletions