projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
diff-tree: don't print multiple headers for merges when silent.
[git.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
e830564
..
3f2235e
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-37,6
+37,8
@@
struct commit *lookup_commit(unsigned char *sha1)
ret->object.type = commit_type;
return ret;
}
+ if (!obj->type)
+ obj->type = commit_type;
return check_commit(obj, sha1);
}