From 5e8011e0dadd475fe1cb59c7f1e8f2896e25703f 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 2e4fcd9..d0b98b0 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -755,6 +755,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