From 4caf25a8c7834568ece454e179d8bd5835a51634 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 14 Jan 2017 01:49:44 -0500 Subject: Add go importpath tags --- ui-shared.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ui-shared.c b/ui-shared.c index d2358f2..ae2dea2 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -809,6 +809,23 @@ void cgit_print_docstart(void) strbuf_release(&sb); free(fileurl); } + if (host && ctx.repo) { + char *repourl = cgit_repourl(ctx.repo->url); + if (repourl[strlen(repourl)-1] == '/') { + repourl[strlen(repourl)-1] = '\0'; + } + + html("\n"); + + free(repourl); + } if (ctx.repo) cgit_add_clone_urls(print_rel_vcs_link); if (ctx.cfg.head_include) -- cgit v1.2.3-54-g00ecf