projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix send-pack for non-commitish tags.
[git.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index
6db3165
..
3ac421a
100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-48,13
+48,10
@@
static struct commit *check_commit(struct object *obj, const unsigned char *sha1
struct commit *lookup_commit_reference(const unsigned char *sha1)
{
struct commit *lookup_commit_reference(const unsigned char *sha1)
{
- struct object *obj =
parse_object(sha1
);
+ struct object *obj =
deref_tag(parse_object(sha1)
);
if (!obj)
return NULL;
if (!obj)
return NULL;
- while (obj->type == tag_type)
- obj = parse_object(((struct tag *)obj)->tagged->sha1);
-
return check_commit(obj, sha1);
}
return check_commit(obj, sha1);
}