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:
parent
fb1b4b9bd3
commit
e70b88b3c2
1 changed files with 1 additions and 1 deletions
2
third_party/cgit/cmd.c
vendored
2
third_party/cgit/cmd.c
vendored
|
@ -150,7 +150,7 @@ struct cgit_cmd *cgit_get_cmd(void)
|
||||||
static struct cgit_cmd cmds[] = {
|
static struct cgit_cmd cmds[] = {
|
||||||
def_cmd(HEAD, 1, 0, 1),
|
def_cmd(HEAD, 1, 0, 1),
|
||||||
def_cmd(atom, 1, 0, 0),
|
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(blame, 1, 1, 0),
|
||||||
def_cmd(blob, 1, 0, 0),
|
def_cmd(blob, 1, 0, 0),
|
||||||
def_cmd(commit, 1, 1, 0),
|
def_cmd(commit, 1, 1, 0),
|
||||||
|
|
Loading…
Reference in a new issue