Code

Be careful when dereferencing tags.
[git.git] / upload-pack.c
index c5eff21363245e1febe03aa8d4309f8cbb0cd7fa..be63132804252e9a2f94ce1166ef9fa319a845fd 100644 (file)
@@ -226,7 +226,7 @@ static int send_ref(const char *refname, const unsigned char *sha1)
                nr_our_refs++;
        }
        if (o->type == tag_type) {
-               o = deref_tag(o);
+               o = deref_tag(o, refname, 0);
                packet_write(1, "%s %s^{}\n", sha1_to_hex(o->sha1), refname);
        }
        return 0;