]> git.ipfire.org Git - thirdparty/git.git/blobdiff - upload-pack.c
upload-pack: avoid parsing tag destinations
[thirdparty/git.git] / upload-pack.c
index 65cb0ff0fbe6356eb62fb0936a14d46670a62ed4..c01e161a9d713b64951210416d44e96835d12a64 100644 (file)
@@ -741,8 +741,7 @@ static int send_ref(const char *refname, const unsigned char *sha1, int flag, vo
                nr_our_refs++;
        }
        if (o->type == OBJ_TAG) {
-               o = parse_object(o->sha1);
-               o = deref_tag(o, refname, 0);
+               o = deref_tag_noverify(o);
                if (o)
                        packet_write(1, "%s %s^{}\n", sha1_to_hex(o->sha1), refname_nons);
        }