ui-summary: Use default branch for readme if : prefix

If the readme value begins with ":", and has no specified branch before
it, use the repository's default branch.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
Jason A. Donenfeld
2013-05-25 14:19:10 +02:00
父节点 03eb76dfad
当前提交 3cb5d86dc6
共有 2 个文件被更改,包括 9 次插入2 次删除

查看文件

@ -505,7 +505,9 @@ 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" Default value: <readme>.
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>.
repo.snapshots::
A mask of allowed snapshot-formats for this repo, restricted by the