transport-helper: improve push messages
[gitweb.git] / transport-helper.c
index dcd8d97411dd15e01ba1480a44b2a998043b424a..e561ec746855cc5c836fed02397ee8b90c1e0ae8 100644 (file)
@@ -801,6 +801,7 @@ static int push_refs_with_export(struct transport *transport,
                if (private && !get_sha1(private, sha1)) {
                        strbuf_addf(&buf, "^%s", private);
                        string_list_append(&revlist_args, strbuf_detach(&buf, NULL));
+                       hashcpy(ref->old_sha1, sha1);
                }
                free(private);