summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-29 19:29:49 -0500
committerUnknwon <u@gogs.io>2016-02-29 19:29:49 -0500
commit9e89584cb4aa6321311dd291c364c5d956fcead1 (patch)
tree5712509c42d1f3f55970daa9a210b19b4c8cfc95 /modules/setting/setting.go
parentea80274229bca259a64fed7eca181e4a82ff0676 (diff)
downloadgitea-9e89584cb4aa6321311dd291c364c5d956fcead1.tar.gz
gitea-9e89584cb4aa6321311dd291c364c5d956fcead1.zip
Allow setting git operations timeouts
- Migrate: #2704 #2653 - Clone: #2701 - Mirror, Pull
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 80d807f851..ad14822f07 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -163,6 +163,12 @@ var (
Git struct {
MaxGitDiffLines int
GcArgs []string `delim:" "`
+ Timeout struct {
+ Migrate int
+ Mirror int
+ Clone int
+ Pull int
+ } `ini:"git.timeout"`
}
// Cron tasks