commit 1cbc02b603bd240e29f2ca64f4f9672a32c526b2 from: Stefan Sperling date: Thu Jun 21 19:02:45 2018 UTC fix object type check in got_open_object_as_tree() commit - 35e9ba5d1cb044ee42c15d31ff663c7d16b25daf commit + 1cbc02b603bd240e29f2ca64f4f9672a32c526b2 blob - 559dc5485e4ac33b36cdae46f20eedd575d06bb9 blob + f5552d9bf05a61506e908f8f664c3d7bc47096f3 --- lib/object.c +++ lib/object.c @@ -1135,7 +1135,7 @@ got_object_open_as_tree(struct got_tree_object **tree, err = got_object_open(&obj, repo, id); if (err) return err; - if (got_object_get_type(obj) != GOT_OBJ_TYPE_COMMIT) { + if (got_object_get_type(obj) != GOT_OBJ_TYPE_TREE) { err = got_error(GOT_ERR_OBJ_TYPE); goto done; }