aboutsummaryrefslogtreecommitdiff
path: root/ui-summary.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui-summary.c b/ui-summary.c
index abf914e..f965b32 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -108,12 +108,7 @@ void cgit_print_repo_readme(char *path)
colon = strchr(ctx.repo->readme, ':');
if (colon && strlen(colon) > 1) {
*colon = '\0';
- /* If it starts with a colon, we want to use
- * the default branch */
- if (colon == ctx.repo->readme && ctx.repo->defbranch)
- ref = ctx.repo->defbranch;
- else
- ref = ctx.repo->readme;
+ ref = ctx.repo->readme;
ctx.repo->readme = colon + 1;
if (!(*ctx.repo->readme))
return;