Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] delta check
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index e83056406f54495fe8a1090a816c425375858d4d..3f2235ecf87b63bc5d16342ebcf7f8faf098530a 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);
}