Merge branch 'for-junio' of git://bogomips.org/git-svn
[gitweb.git] / transport-helper.c
index 033a2286137e3ed741eef40c0572affa0edac14b..6cd9dd1f9fe98e4c65156fba41172ba22d5be6de 100644 (file)
@@ -891,7 +891,10 @@ static int push_refs_with_export(struct transport *transport,
                                        int flag;
 
                                        /* Follow symbolic refs (mainly for HEAD). */
-                                       name = resolve_ref_unsafe(ref->peer_ref->name, sha1, 1, &flag);
+                                       name = resolve_ref_unsafe(
+                                                ref->peer_ref->name,
+                                                RESOLVE_REF_READING,
+                                                sha1, &flag);
                                        if (!name || !(flag & REF_ISSYMREF))
                                                name = ref->peer_ref->name;