summaryrefslogtreecommitdiff
path: root/t/t3103-ls-tree-misc.sh
AgeCommit message (Collapse)Author
2011-07-25Ensure git ls-tree exits with a non-zero exit code if read_tree_recursive fails.Jon Seymour
In the case of a corrupt repository, git ls-tree may report an error but presently it exits with a code of 0. This change uses the return code of read_tree_recursive instead. Improved-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-07-24Add a test to check that git ls-tree sets non-zero exit code on error.Jon Seymour
Expected to fail at this commit, fixed by subsequent commit. Additional tests of adhoc or uncategorised nature should be added to this file. Improved-by: Jens Lehmann <Jens.Lehmann@web.de> Improved-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>