aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgitrc.5.txt4
-rw-r--r--ui-summary.c7
2 files changed, 2 insertions, 9 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 8a0a9c9..9b803b3 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -505,9 +505,7 @@ repo.readme::
A path (relative to <repo.path>) which specifies a file to include
verbatim as the "About" page for this repo. You may also specify a
git refspec by head or by hash by prepending the refspec followed by
- a colon. For example, "master:docs/readme.mkd". If the value begins
- with a colon, i.e. ":docs/readme.rst", the default branch of the
- repository will be used. Default value: <readme>.
+ a colon. For example, "master:docs/readme.mkd" Default value: <readme>.
repo.snapshots::
A mask of allowed snapshot-formats for this repo, restricted by the
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;