Skip to content

Commit

Permalink
Merge branch 'tr/cache-tree'
Browse files Browse the repository at this point in the history
* tr/cache-tree:
  t0090: be prepared that 'wc -l' writes leading blanks
  • Loading branch information
Junio C Hamano committed Dec 20, 2011
2 parents 876a6f4 + 4cd6755 commit 3fabe99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions t/t0090-cache-tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3fabe99

Please sign in to comment.