projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Adjust diff-helper to diff-tree -v -z changes.
[git.git]
/
tree.c
diff --git
a/tree.c
b/tree.c
index
ca800a8
..
d448dae
100644
(file)
--- a/
tree.c
+++ b/
tree.c
@@
-83,6
+83,8
@@
struct tree *lookup_tree(unsigned char *sha1)
ret->object.type = tree_type;
return ret;
}
+ if (!obj->type)
+ obj->type = tree_type;
if (obj->type != tree_type) {
error("Object %s is a %s, not a tree",
sha1_to_hex(sha1), obj->type);