diff options
author | Unknwon <u@gogs.io> | 2016-02-29 19:29:49 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-02-29 19:29:49 -0500 |
commit | 9e89584cb4aa6321311dd291c364c5d956fcead1 (patch) | |
tree | 5712509c42d1f3f55970daa9a210b19b4c8cfc95 /modules/setting/setting.go | |
parent | ea80274229bca259a64fed7eca181e4a82ff0676 (diff) | |
download | gitea-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.go | 6 |
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 |