1#!/bin/sh
23
test_description='
4Miscellaneous tests for git ls-tree.
56
1. git ls-tree fails in presence of tree damage.
78
'
910
. ./test-lib.sh
1112
test_expect_success 'setup' '
13mkdir a &&
14touch a/one &&
15git add a/one &&
16git commit -m test
17'
1819
test_expect_success 'ls-tree fails with non-zero exit code on broken tree' '
20rm -f .git/objects/5f/cffbd6e4c5c5b8d81f5e9314b20e338e3ffff5 &&
21test_must_fail git ls-tree -r HEAD
22'
2324
test_done