about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-02-09T17·01+0000
committerVincent Ambo <tazjin@google.com>2020-02-09T17·01+0000
commite70b88b3c2493129f164f2664622c24bf88197c9 (patch)
treea5ba513a2687df5922a1cd7d5aac23fadd57fa96 /third_party
parentfb1b4b9bd33141fd8d08b40eb0e8fb62251f89ab (diff)
fix(third_party/cgit): Make vpath & repo available for about cmd r/514
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.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/cgit/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/cgit/cmd.c b/third_party/cgit/cmd.c
index 0fd0a01bc8..8fac7e9c09 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),