1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 22:44:49 +01:00

Merge branch 'jc/cache-tree' into next

* jc/cache-tree:
  Fix crash when reading the empty tree
This commit is contained in:
Junio C Hamano 2006-05-07 16:06:44 -07:00
commit 2c4c17fbb9

View file

@ -881,7 +881,7 @@ int main(int argc, char **argv)
* valid cache-tree because the index must match exactly
* what came from the tree.
*/
if (trees->item && (!merge || (stage == 2))) {
if (trees && trees->item && (!merge || (stage == 2))) {
cache_tree_free(&active_cache_tree);
prime_cache_tree();
}