Remove duplicate ref matches in fetch
[git/git.git] / builtin-fetch.c
index cf7498b..caaca63 100644 (file)
@@ -112,6 +112,7 @@ static struct ref *get_ref_map(struct transport *transport,
                        ref_map->merge = 1;
                }
        }
+       ref_remove_duplicates(ref_map);
 
        return ref_map;
 }