string_list: Fix argument order for string_list_append
[gitweb.git] / remote.c
index 5a658381150520056ea70aed5a15882bbb448bd8..9f0c6ef8f5797b09fc4e63fe87a1221f38d22ce5 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1711,7 +1711,7 @@ struct ref *get_stale_heads(struct remote *remote, struct ref *fetch_map)
        info.ref_names = &ref_names;
        info.stale_refs_tail = &stale_refs;
        for (ref = fetch_map; ref; ref = ref->next)
-               string_list_append(ref->name, &ref_names);
+               string_list_append(&ref_names, ref->name);
        sort_string_list(&ref_names);
        for_each_ref(get_stale_heads_cb, &info);
        string_list_clear(&ref_names, 0);