about summary refs log tree commit diff
path: root/third_party/cgit/ui-shared.c
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-11-21T19·06+0100
committerVincent Ambo <mail@tazj.in>2020-11-21T19·09+0100
commitcd652b3b22d69e36a5f1eb887f532010384d864e (patch)
tree25102213fce2e69e4be5f1424793b241afb92a6a /third_party/cgit/ui-shared.c
parent1e81ce6622ef790b297ff48f1d0286f51e225aee (diff)
fix(3p/cgit): Rename remaining 'sha1' references to 'oid' r/1892
This changed upstream & upstream-upstream, but was still used in our
patches.

Change-Id: Id33f868a4f188deb3348425276bc5b4c4b36aff9
Diffstat (limited to 'third_party/cgit/ui-shared.c')
-rw-r--r--third_party/cgit/ui-shared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/cgit/ui-shared.c b/third_party/cgit/ui-shared.c
index e60b594035..ee8f311f61 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);