grep -O: Do not pass color sequences as filenames to pager
[gitweb.git] / builtin / rerere.c
index 34f9acee910406c7ba0bf9eed76267a0cf8f46c2..73610b6bc29285a4a4481458c86817ea2ab3ccf6 100644 (file)
@@ -59,7 +59,7 @@ static void garbage_collect(struct string_list *rr)
                cutoff = (has_rerere_resolution(e->d_name)
                          ? cutoff_resolve : cutoff_noresolve);
                if (then < now - cutoff * 86400)
-                       string_list_append(e->d_name, &to_remove);
+                       string_list_append(&to_remove, e->d_name);
        }
        for (i = 0; i < to_remove.nr; i++)
                unlink_rr_item(to_remove.items[i].string);