diff options
Diffstat (limited to 'sha1-name.c')
-rw-r--r-- | sha1-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-name.c b/sha1-name.c index 5b93bf8da3..bd99fd822b 100644 --- a/sha1-name.c +++ b/sha1-name.c @@ -864,7 +864,7 @@ struct object *peel_to_type(const char *name, int namelen, if (o->type == OBJ_TAG) o = ((struct tag*) o)->tagged; else if (o->type == OBJ_COMMIT) - o = &(((struct commit *) o)->tree->object); + o = &(get_commit_tree(((struct commit *)o))->object); else { if (name) error("%.*s: expected %s type, but the object " |