refs.c: flatten get_ref_store() a bit
[gitweb.git] / transport.c
index ea1feac9dcd83dac05cf0e2c35cf5f7a022810aa..417ed7f19f5fcec5fdf9828749e1e40b207a44e7 100644 (file)
@@ -471,11 +471,11 @@ void transport_print_push_status(const char *dest, struct ref *refs,
 {
        struct ref *ref;
        int n = 0;
-       unsigned char head_sha1[20];
+       struct object_id head_oid;
        char *head;
        int summary_width = transport_summary_width(refs);
 
-       head = resolve_refdup("HEAD", RESOLVE_REF_READING, head_sha1, NULL);
+       head = resolve_refdup("HEAD", RESOLVE_REF_READING, head_oid.hash, NULL);
 
        if (verbose) {
                for (ref = refs; ref; ref = ref->next)