commit: convert commit_tree* to object_id
[gitweb.git] / builtin / describe.c
index 3b0b204b1e495626f3490d62f281291ee039ba42..6fe1c51281bf1bb6a92f00d837fecf60fe38ca31 100644 (file)
@@ -274,10 +274,13 @@ static void append_name(struct commit_name *n, struct strbuf *dst)
                n->name_checked = 1;
        }
 
-       if (n->tag)
+       if (n->tag) {
+               if (all)
+                       strbuf_addstr(dst, "tags/");
                strbuf_addstr(dst, n->tag->tag);
-       else
+       } else {
                strbuf_addstr(dst, n->path);
+       }
 }
 
 static void append_suffix(int depth, const struct object_id *oid, struct strbuf *dst)