X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.c;h=afbba47460c0204721d61800033ed0a9f93f92bc;hb=0b9dca434f5d9208a26f47f7ec11453f1cfdfae8;hp=e51cd22d6bcbd29bd47392434d37fb50d7b97588;hpb=cecff3a45b4660f47a58746eae42b6ddb58e1919;p=git.git diff --git a/remote.c b/remote.c index e51cd22d6..afbba4746 100644 --- a/remote.c +++ b/remote.c @@ -762,7 +762,7 @@ void ref_remove_duplicates(struct ref *ref_map) if (!ref_map->peer_ref) continue; - item = string_list_lookup(ref_map->peer_ref->name, &refs); + item = string_list_lookup(&refs, ref_map->peer_ref->name); if (item) { if (strcmp(((struct ref *)item->util)->name, ref_map->name)) @@ -777,7 +777,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); @@ -1710,7 +1710,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);