From cd652b3b22d69e36a5f1eb887f532010384d864e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 21 Nov 2020 20:06:08 +0100 Subject: fix(3p/cgit): Rename remaining 'sha1' references to 'oid' This changed upstream & upstream-upstream, but was still used in our patches. Change-Id: Id33f868a4f188deb3348425276bc5b4c4b36aff9 --- third_party/cgit/ui-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/cgit/ui-shared.c b/third_party/cgit/ui-shared.c index e60b59403574..ee8f311f616e 100644 --- a/third_party/cgit/ui-shared.c +++ b/third_party/cgit/ui-shared.c @@ -517,7 +517,7 @@ static void cgit_self_link(char *name, const char *title, const char *class) ctx.qry.ofs, 1); else if (!strcmp(ctx.qry.page, "about")) cgit_about_link(name, title, class, ctx.qry.head, - ctx.qry.has_sha1 ? ctx.qry.sha1 : NULL, + ctx.qry.has_oid ? ctx.qry.oid : NULL, ctx.qry.path); else if (!strcmp(ctx.qry.page, "summary")) cgit_summary_link(name, title, class, ctx.qry.head); @@ -1044,7 +1044,7 @@ void cgit_print_pageheader(void) if (ctx.env.authenticated && ctx.repo) { if (ctx.repo->readme.nr) { cgit_about_link("about", NULL, hc("about"), ctx.qry.head, - ctx.qry.sha1, ctx.qry.vpath); + ctx.qry.oid, ctx.qry.vpath); } cgit_summary_link("summary", NULL, hc("summary"), ctx.qry.head); -- cgit 1.4.1