diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/cgit.c4
-rw-r--r--source/cgit.h1
-rw-r--r--source/cmd.c2
-rw-r--r--source/scan-tree.c2
-rw-r--r--source/shared.c1
-rw-r--r--source/ui-shared.c5
6 files changed, 0 insertions, 15 deletions
diff --git a/source/cgit.c b/source/cgit.c
index 5c11a93..53a33ca 100644
--- a/source/cgit.c
+++ b/source/cgit.c
@@ -240,8 +240,6 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
fprintf(f, "repo.module-link=%s\n", repo->module_link);
if (repo->section)
fprintf(f, "repo.section=%s\n", repo->section);
- if (repo->homepage)
- fprintf(f, "repo.homepage=%s\n", repo->homepage);
if (repo->clone_url)
fprintf(f, "repo.clone-url=%s\n", repo->clone_url);
fprintf(f, "repo.enable-blame=%d\n", repo->enable_blame);
@@ -1101,8 +1099,6 @@ void cgit_repo_config(struct cgit_repo *repo, const char *name, const char *valu
repo->desc = cgit_strdup_first_line(value);
else if (!strcmp(name, "owner"))
repo->owner = cgit_strdup_first_line(value);
- else if (!strcmp(name, "homepage"))
- repo->homepage = cgit_strdup_first_line(value);
else if (!strcmp(name, "defbranch"))
repo->defbranch = cgit_strdup_first_line(value);
else if (!strcmp(name, "extra-head-content"))
diff --git a/source/cgit.h b/source/cgit.h
index eadb680..ed966ae 100644
--- a/source/cgit.h
+++ b/source/cgit.h
@@ -74,7 +74,6 @@ struct cgit_repo {
char *desc;
char *extra_head_content;
char *owner;
- char *homepage;
char *defbranch;
char *module_link;
struct string_list readme;
diff --git a/source/cmd.c b/source/cmd.c
index 456a937..97ffc78 100644
--- a/source/cmd.c
+++ b/source/cmd.c
@@ -56,8 +56,6 @@ static void about_fn(void)
free(redirect);
} else if (ctx.repo->readme.nr) {
cgit_print_repo_readme(ctx.qry.path);
- } else if (ctx.repo->homepage) {
- cgit_redirect(ctx.repo->homepage, false);
} else {
currenturl = cgit_currenturl();
redirect = cgit_fmtalloc("%s../", currenturl);
diff --git a/source/scan-tree.c b/source/scan-tree.c
index 4a1444f..3528d43 100644
--- a/source/scan-tree.c
+++ b/source/scan-tree.c
@@ -60,8 +60,6 @@ static int apply_gitconfig(const char *key, const char *value,
cgit_repo_config(current_repo, "desc", value);
else if (!strcmp(key, "gitweb.category"))
cgit_repo_config(current_repo, "section", value);
- else if (!strcmp(key, "gitweb.homepage"))
- cgit_repo_config(current_repo, "homepage", value);
else if (skip_prefix(key, "cgit.", &name))
cgit_repo_config(current_repo, name, value);
diff --git a/source/shared.c b/source/shared.c
index e6dd011..d5ff7c4 100644
--- a/source/shared.c
+++ b/source/shared.c
@@ -213,7 +213,6 @@ struct cgit_repo *cgit_add_repo(const char *url)
repo->desc = cgit_default_repo_desc;
repo->extra_head_content = NULL;
repo->owner = NULL;
- repo->homepage = NULL;
repo->section = ctx.cfg.section;
repo->snapshots = ctx.cfg.snapshots;
repo->enable_blame = ctx.cfg.enable_blame;
diff --git a/source/ui-shared.c b/source/ui-shared.c
index 938f292..a1538f8 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -524,11 +524,6 @@ static void print_repo_tabs(void)
ctx.qry.head, ctx.qry.vpath);
html("</li>\n");
}
- if (ctx.repo->homepage) {
- html("<li><a class='external' href='");
- html_attr(ctx.repo->homepage);
- html("'>homepage</a></li>\n");
- }
html("</ul>\n");
}