1
0
mirror of https://github.com/git/git.git synced 2024-09-28 10:00:54 +02:00

Merge branch 'tr/cache-tree'

* tr/cache-tree:
  t0090: be prepared that 'wc -l' writes leading blanks
This commit is contained in:
Junio C Hamano 2011-12-20 12:16:04 -08:00
commit 3fabe9966b

View File

@ -17,15 +17,13 @@ cmp_cache_tree () {
# test-dump-cache-tree already verifies that all existing data is
# correct.
test_shallow_cache_tree () {
echo "SHA " \
"($(git ls-files|wc -l) entries, 0 subtrees)" >expect &&
printf "SHA (%d entries, 0 subtrees)\n" $(git ls-files|wc -l) >expect &&
cmp_cache_tree expect
}
test_invalid_cache_tree () {
echo "invalid (0 subtrees)" >expect &&
echo "SHA #(ref) " \
"($(git ls-files|wc -l) entries, 0 subtrees)" >>expect &&
printf "SHA #(ref) (%d entries, 0 subtrees)\n" $(git ls-files|wc -l) >>expect &&
cmp_cache_tree expect
}