l10n: bg.po: Updated Bulgarian translation (5211t)
[git/debian.git] / t / t3103-ls-tree-misc.sh
blobd18ba1bd84bb473888c5e24191d79f9d0a792358
1 #!/bin/sh
3 test_description='
4 Miscellaneous tests for git ls-tree.
6 1. git ls-tree fails in presence of tree damage.
10 TEST_PASSES_SANITIZE_LEAK=true
11 . ./test-lib.sh
13 test_expect_success 'setup' '
14 mkdir a &&
15 touch a/one &&
16 git add a/one &&
17 git commit -m test
20 test_expect_success 'ls-tree fails with non-zero exit code on broken tree' '
21 tree=$(git rev-parse HEAD:a) &&
22 rm -f .git/objects/$(echo $tree | sed -e "s,^\(..\),\1/,") &&
23 test_must_fail git ls-tree -r HEAD
26 test_done