mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Merge pull request 'git-grep: set timeout to 2s by default and allow configuring it' (#4966) from yoctozepto/git-grep-timeout into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4966 Reviewed-by: Otto <otto@codeberg.org>
This commit is contained in:
commit
d26ad8dbe5
3 changed files with 7 additions and 0 deletions
|
@ -37,6 +37,7 @@ var Git = struct {
|
|||
Clone int
|
||||
Pull int
|
||||
GC int `ini:"GC"`
|
||||
Grep int
|
||||
} `ini:"git.timeout"`
|
||||
}{
|
||||
DisableDiffHighlight: false,
|
||||
|
@ -59,6 +60,7 @@ var Git = struct {
|
|||
Clone int
|
||||
Pull int
|
||||
GC int `ini:"GC"`
|
||||
Grep int
|
||||
}{
|
||||
Default: 360,
|
||||
Migrate: 600,
|
||||
|
@ -66,6 +68,7 @@ var Git = struct {
|
|||
Clone: 300,
|
||||
Pull: 300,
|
||||
GC: 60,
|
||||
Grep: 2,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue