]> git.ipfire.org Git - thirdparty/git.git/blame - t/t3103-ls-tree-misc.sh
l10n: fr v2.23.0 round 2
[thirdparty/git.git] / t / t3103-ls-tree-misc.sh
CommitLineData
6c1c1448
JS
1#!/bin/sh
2
3test_description='
4Miscellaneous tests for git ls-tree.
5
6 1. git ls-tree fails in presence of tree damage.
7
8'
9
10. ./test-lib.sh
11
12test_expect_success 'setup' '
13 mkdir a &&
14 touch a/one &&
15 git add a/one &&
16 git commit -m test
17'
18
04f89259 19test_expect_success 'ls-tree fails with non-zero exit code on broken tree' '
831c61cc 20 tree=$(git rev-parse HEAD:a) &&
21 rm -f .git/objects/$(echo $tree | sed -e "s,^\(..\),\1/,") &&
6c1c1448
JS
22 test_must_fail git ls-tree -r HEAD
23'
24
25test_done