summaryrefslogtreecommitdiffstats
path: root/conf/app.ini
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 /conf/app.ini
parentea80274229bca259a64fed7eca181e4a82ff0676 (diff)
downloadgitea-9e89584cb4aa6321311dd291c364c5d956fcead1.tar.gz
gitea-9e89584cb4aa6321311dd291c364c5d956fcead1.zip
Allow setting git operations timeouts
- Migrate: #2704 #2653 - Clone: #2701 - Mirror, Pull
Diffstat (limited to 'conf/app.ini')
-rw-r--r--conf/app.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 1b45754580..73f9a0ba28 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -331,6 +331,13 @@ MAX_GIT_DIFF_LINES = 10000
; see more on http://git-scm.com/docs/git-gc/1.7.5
GC_ARGS =
+; Operation timeout in seconds
+[git.timeout]
+MIGRATE = 600
+MIRROR = 300
+CLONE = 300
+PULL = 300
+
[i18n]
LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT
NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,Polski,български,Italiano