summaryrefslogtreecommitdiff
path: root/builtin/name-rev.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-11-18 19:30:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-18 19:30:02 (GMT)
commit4c00c852b3f2596f246811ca933eef357183581b (patch)
tree9124be28ac775505f8627c71d8af7bf6c879639b /builtin/name-rev.c
parent418c9b176cbabf954b6325cca0bea7f9be251afe (diff)
parentbd5bce7cbc55fa52277cc8a39f673c3e2dc60670 (diff)
downloadgit-4c00c852b3f2596f246811ca933eef357183581b.zip
git-4c00c852b3f2596f246811ca933eef357183581b.tar.gz
git-4c00c852b3f2596f246811ca933eef357183581b.tar.bz2
Sync with 1.7.7.4
Diffstat (limited to 'builtin/name-rev.c')
-rw-r--r--builtin/name-rev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 7864056..1b37458 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -291,7 +291,7 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
max = get_max_object_index();
for (i = 0; i < max; i++) {
struct object *obj = get_indexed_object(i);
- if (!obj)
+ if (!obj || obj->type != OBJ_COMMIT)
continue;
show_name(obj, NULL,
always, allow_undefined, data.name_only);