We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32987b commit c35dfe8Copy full SHA for c35dfe8
commit.c
@@ -15,7 +15,7 @@ struct commit *lookup_commit(unsigned char *sha1)
15
ret->object.type = commit_type;
16
return ret;
17
}
18
- if (obj->parsed && obj->type != commit_type) {
+ if (obj->type != commit_type) {
19
error("Object %s is a %s, not a commit",
20
sha1_to_hex(sha1), obj->type);
21
return NULL;
tree.c
@@ -80,7 +80,7 @@ struct tree *lookup_tree(unsigned char *sha1)
80
ret->object.type = tree_type;
81
82
83
- if (obj->parsed && obj->type != tree_type) {
+ if (obj->type != tree_type) {
84
error("Object %s is a %s, not a tree",
85
86
0 commit comments