Merge branch 'ab/submodule-add-f'
[gitweb.git] / builtin / rerere.c
index 0048f9ef7fee24e5e058ef226f3b0fc93703fcf1..980d5421eee881ccb84c20dfb7aaae7dbb6a06ab 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);