projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.20.2
[platform/upstream/git.git]
/
t
/
t3103-ls-tree-misc.sh
diff --git
a/t/t3103-ls-tree-misc.sh
b/t/t3103-ls-tree-misc.sh
index
09dcf04
..
1452091
100755
(executable)
--- a/
t/t3103-ls-tree-misc.sh
+++ b/
t/t3103-ls-tree-misc.sh
@@
-17,7
+17,8
@@
test_expect_success 'setup' '
'
test_expect_success 'ls-tree fails with non-zero exit code on broken tree' '
'
test_expect_success 'ls-tree fails with non-zero exit code on broken tree' '
- rm -f .git/objects/5f/cffbd6e4c5c5b8d81f5e9314b20e338e3ffff5 &&
+ tree=$(git rev-parse HEAD:a) &&
+ rm -f .git/objects/$(echo $tree | sed -e "s,^\(..\),\1/,") &&
test_must_fail git ls-tree -r HEAD
'
test_must_fail git ls-tree -r HEAD
'