diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-02-21 23:47:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-22 10:12:15 -0800 |
commit | 2928325fc0b676876fcda5ffcbc461695aaedbb8 (patch) | |
tree | bbe6fa6cbfad815394e85025adbd8fda34c9b7cf /transport.c | |
parent | 52684310baadac2de07548af67993309d00ce0cf (diff) | |
download | git-2928325fc0b676876fcda5ffcbc461695aaedbb8.tar.gz |
Convert remaining callers of resolve_refdup to object_id
There are a few leaf functions in various files that call
resolve_refdup. Convert these functions to use struct object_id
internally to prepare for transitioning resolve_refdup itself.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transport.c b/transport.c index d72e089484..141af31e8e 100644 --- a/transport.c +++ b/transport.c @@ -467,11 +467,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) |