sequencer: completely revamp the "todo" script parsing
[gitweb.git] / submodule.c
index aba94dd07dbd5c8d1e9cad5b3980bb4a9759e6cf..2de06a33516d40ab169a9a031df4fb547f9094fd 100644 (file)
@@ -396,7 +396,7 @@ static void show_submodule_header(FILE *f, const char *path,
                        find_unique_abbrev(one->hash, DEFAULT_ABBREV));
        if (!fast_backward && !fast_forward)
                strbuf_addch(&sb, '.');
-       strbuf_addf(&sb, "%s", find_unique_abbrev(two->hash, DEFAULT_ABBREV));
+       strbuf_add_unique_abbrev(&sb, two->hash, DEFAULT_ABBREV);
        if (message)
                strbuf_addf(&sb, " %s%s\n", message, reset);
        else