Merge branch 'jm/maint-strncpy-diff-no-index'
[gitweb.git] / builtin / fetch.c
index 996a4d62529dea72e6151662f4733d73e24cdb2b..cfb43df4e843970a7ff93078ea1bcbbdb9985260 100644 (file)
@@ -585,7 +585,7 @@ static void find_non_local_tags(struct transport *transport,
 
        for_each_ref(add_existing, &existing_refs);
        for (ref = transport_get_remote_refs(transport); ref; ref = ref->next) {
-               if (prefixcmp(ref->name, "refs/tags"))
+               if (prefixcmp(ref->name, "refs/tags/"))
                        continue;
 
                /*