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.
This commit is contained in:
Vincent Ambo 2020-02-09 17:01:21 +00:00
parent fb1b4b9bd3
commit e70b88b3c2

View file

@ -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),