diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2015-05-25 21:38:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-05-25 22:19:33 +0300 |
commit | 5f9cf5abd2f918d374d11a0f468bc2387a3d32c2 (patch) | |
tree | 04d70bc4c0c361124fdee412e680a8f482dd852e | |
parent | f72f54210728a3550fa314e99470dcbbef001297 (diff) |
show_head_ref(): convert local variable "unused" to object_id
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | http-backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http-backend.c b/http-backend.c index a2d388de96..55353ad66a 100644 --- a/http-backend.c +++ b/http-backend.c @@ -408,10 +408,10 @@ static int show_head_ref(const char *refname, const struct object_id *oid, struct strbuf *buf = cb_data; if (flag & REF_ISSYMREF) { - unsigned char unused[20]; + struct object_id unused; const char *target = resolve_ref_unsafe(refname, RESOLVE_REF_READING, - unused, NULL); + unused.hash, NULL); const char *target_nons = strip_namespace(target); strbuf_addf(buf, "ref: %s\n", target_nons); |