From e70b88b3c2493129f164f2664622c24bf88197c9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 9 Feb 2020 17:01:21 +0000 Subject: [PATCH] fix(third_party/cgit): Make vpath & repo available for about cmd This change makes cgit pass the current repo and vpath inside of the repo on to the about cmd, which makes it possible for it to correctly render `tree`, `log` and other links to the same vpath. --- third_party/cgit/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/cgit/cmd.c b/third_party/cgit/cmd.c index 0fd0a01bc..8fac7e9c0 100644 --- a/third_party/cgit/cmd.c +++ b/third_party/cgit/cmd.c @@ -150,7 +150,7 @@ struct cgit_cmd *cgit_get_cmd(void) static struct cgit_cmd cmds[] = { def_cmd(HEAD, 1, 0, 1), def_cmd(atom, 1, 0, 0), - def_cmd(about, 0, 0, 0), + def_cmd(about, 1, 1, 0), def_cmd(blame, 1, 1, 0), def_cmd(blob, 1, 0, 0), def_cmd(commit, 1, 1, 0),