summaryrefslogtreecommitdiff
path: root/http-backend.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-05-25 18:38:56 +0000
committerJunio C Hamano <gitster@pobox.com>2015-05-25 12:19:33 -0700
commit5f9cf5abd2f918d374d11a0f468bc2387a3d32c2 (patch)
tree04d70bc4c0c361124fdee412e680a8f482dd852e /http-backend.c
parentf72f54210728a3550fa314e99470dcbbef001297 (diff)
downloadgit-5f9cf5abd2f918d374d11a0f468bc2387a3d32c2.tar.gz
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>
Diffstat (limited to 'http-backend.c')
-rw-r--r--http-backend.c4
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);