From 1675fc4301d4bff339a0831348fca76a9e394999 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 6 Jul 2018 13:49:37 +0800 Subject: [PATCH] add git timeout settings docs (#4383) --- docs/content/doc/advanced/config-cheat-sheet.en-us.md | 7 +++++++ docs/content/doc/advanced/config-cheat-sheet.zh-cn.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index 88ebd4053..c7e80b957 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -283,6 +283,13 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`. - `MAX_GIT_DIFF_FILES`: **100**: Max number of files shown in diff view. - `GC_ARGS`: **\**: Arguments for command `git gc`, e.g. `--aggressive --auto`. +## Git - Timeout settings (`git.timeout`) +- `MIGRATE`: **600**: Migrate external repositories timeout seconds. +- `MIRROR`: **300**: Mirror external repositories timeout seconds. +- `CLONE`: **300**: Git clone from internal repositories timeout seconds. +- `PULL`: **300**: Git pull from internal repositories timeout seconds. +- `GC`: **60**: Git repository GC timeout seconds. + ## API (`api`) - `ENABLE_SWAGGER_ENDPOINT`: **true**: Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true. diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md index 09862cc3b..a7109572d 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md +++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md @@ -187,6 +187,13 @@ menu: - `MAX_GIT_DIFF_FILES`: 比较视图中的最大现实文件数目。 - `GC_ARGS`: 执行 `git gc` 命令的参数, 比如: `--aggressive --auto`。 +## Git - 超时设置 (`git.timeout`) +- `MIGRATE`: **600**: 迁移外部仓库时的超时时间,单位秒 +- `MIRROR`: **300**: 镜像外部仓库的超时时间,单位秒 +- `CLONE`: **300**: 内部仓库间克隆的超时时间,单位秒 +- `PULL`: **300**: 内部仓库间拉取的超时时间,单位秒 +- `GC`: **60**: git仓库GC的超时时间,单位秒 + ## markup (`markup`) 外部渲染工具支持,你可以用你熟悉的文档渲染工具. 比如一下将新增一个名字为 `asciidoc` 的渲染工具which is followed `markup.` ini section. And there are some config items below.