Merge branch 'jk/cache-tree-protect-from-broken-libgit2'
commite44da1bbb83f8dac4ea2ae7c806383af470edd38
authorJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2014 18:51:35 +0000 (6 10:51 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Nov 2014 18:51:35 +0000 (6 10:51 -0800)
tree668b6fa4c0700310020ef58465f0cb83773a06a9
parentf745acb028ee8f7dcd1c8f10127b8feeaa255cf7
parent729dbbd9fc715fac1fc7cd8b603f0a7d625f2dfc
Merge branch 'jk/cache-tree-protect-from-broken-libgit2'

The code to use cache-tree trusted the on-disk data too much
and fell into an infinite loop.

* jk/cache-tree-protect-from-broken-libgit2:
  cache-tree: avoid infinite loop on zero-entry tree
cache-tree.c