string_list: Fix argument order for string_list_insert
[gitweb.git] / remote.c
index 0f073e0b5f9f08510af3a9e0ab5aed106475b30f..7ce714ca2fc9865278cc5adfe3c3866ca352f7a9 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -778,7 +778,7 @@ void ref_remove_duplicates(struct ref *ref_map)
                        continue;
                }
 
-               item = string_list_insert(ref_map->peer_ref->name, &refs);
+               item = string_list_insert(&refs, ref_map->peer_ref->name);
                item->util = ref_map;
        }
        string_list_clear(&refs, 0);