Skip to content

Commit 1675fc4

Browse files
lunnylafriks
authored andcommitted
add git timeout settings docs (#4383)
1 parent 61b4052 commit 1675fc4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+7
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
283283
- `MAX_GIT_DIFF_FILES`: **100**: Max number of files shown in diff view.
284284
- `GC_ARGS`: **\<empty\>**: Arguments for command `git gc`, e.g. `--aggressive --auto`.
285285

286+
## Git - Timeout settings (`git.timeout`)
287+
- `MIGRATE`: **600**: Migrate external repositories timeout seconds.
288+
- `MIRROR`: **300**: Mirror external repositories timeout seconds.
289+
- `CLONE`: **300**: Git clone from internal repositories timeout seconds.
290+
- `PULL`: **300**: Git pull from internal repositories timeout seconds.
291+
- `GC`: **60**: Git repository GC timeout seconds.
292+
286293
## API (`api`)
287294

288295
- `ENABLE_SWAGGER_ENDPOINT`: **true**: Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.

docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

+7
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ menu:
187187
- `MAX_GIT_DIFF_FILES`: 比较视图中的最大现实文件数目。
188188
- `GC_ARGS`: 执行 `git gc` 命令的参数, 比如: `--aggressive --auto`
189189

190+
## Git - 超时设置 (`git.timeout`)
191+
- `MIGRATE`: **600**: 迁移外部仓库时的超时时间,单位秒
192+
- `MIRROR`: **300**: 镜像外部仓库的超时时间,单位秒
193+
- `CLONE`: **300**: 内部仓库间克隆的超时时间,单位秒
194+
- `PULL`: **300**: 内部仓库间拉取的超时时间,单位秒
195+
- `GC`: **60**: git仓库GC的超时时间,单位秒
196+
190197
## markup (`markup`)
191198

192199
外部渲染工具支持,你可以用你熟悉的文档渲染工具. 比如一下将新增一个名字为 `asciidoc` 的渲染工具which is followed `markup.` ini section. And there are some config items below.

0 commit comments

Comments
 (0)