mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 13:04:08 +02:00
Allow setting git operations timeouts
- Migrate: #2704 #2653 - Clone: #2701 - Mirror, Pull
This commit is contained in:
1 parent
ea80274229
commit
9e89584cb4
8 files changed
+29
-10
No files matched your search
@@ -282,7 +282,7 @@ func (fi bindataFileInfo) Sys() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x5a\x5b\x6f\xe3\x48\x76\x7e\xe7\xaf\xa8\xf1\x64\xd2\xee\x40\x17\xcb\x6e\x77\xf7\x78\xd7\x9b\x91\x25\xca\xd6\xb6\x6e\x43\x4a\xdd\xd3\xd3\x30\x68\x5a\x2c\x49\x1c\x53\xa4\x9a\x45\xda\xed\x41\x10\xec\x20\x0f\x01\xf2\x9a\x20\x79\x09\x82\xe4\x21\x08\xb0\xb9\x20\x8b\xbc\xec\x26\xc8\xd3\x20\xef\x3d\xff\x61\x31\x9b\xfc\x8b\x7c\xe7\x54\x51\xa2\xdc\x1e\x27\x0b\x24\x73\xb1\x78\xa9\x3a\x55\x75\xea\x9c\xf3\x7d\xe7\x14\x3f\x16\x03\xfb\xa5\xed\x08\xfe\xd3\x1f\xb6\xbb\x9d\xd7\x62\x7c\xd6\x75\x45\xa7\xdb\xb3\xad\x8f\xc5\xa8\x67\x37\x5d\x5b\xf4\x9b\x2f\x6c\xd1\x3a\x6b\x0e\x4e\x6d\x57\x0c\x07\xa2\x35\x74\x1c\xdb\x1d\x0d\x07\xed\xee\xe0\x54\xb4\x26\xee\x78\xd8\xc7\xc3\x41\xa7\x7b\xaa\x7b\x5a\x3f\x12\xcd\xd5\x4a\xc4\xfe\x52\x8a\x6c\xe1\x67\x42\x2d\x92\x1b\x25\x92\x58\xc8\x6b\x99\xde\x8a\x95\x3f\xc7\x8b\x30\x8b\xa4\xd5\x1c\x8d\xbc\x41\xb3\x6f\x8b\x63\x71\x9a\xcc\xd5\x11\xfe\x8a\xd3\x30\x13\xae\x4c\xaf\xc3\xa9\x84\xa4\xd6\xc2\x8f\xd1\x1c\xcf\xc2\x99\xb8\x4d\x72\x91\xe6\xb1\x88\x92\xa9\x1f\x45\xb7\x96\x33\x19\x78\x13\x17\xb3\x3f\x16\xf3\x30\x43\x6b\x3b\xcc\x16\x32\x15\x3b\x81\xbc\xde\xa9\x88\x9d\x55\x9a\x04\x3b\x22\xc1\x83\x4c\xaa\x0c\x4f\x02\x39\xf3\xf3\x08\xb2\x94\x6e\xc3\x12\xb0\x74\x9a\x00\xee\x2d\xeb\x4d\x2a\x57\x89\x0a\xb3\x24\xbd\x3d\xb7\x9c\xe1\x70\x2c\x8e\x2d\xb7\xe5\x74\x47\x63\x6f\xfc\x7a\x44\xcd\x2e\x7d\xb5\xc0\x48\x6d\x23\xa9\x39\x70\xbb\x62\xba\xf0\x53\x25\x33\x8b\x6e\x3c\xa8\xca\x71\x6d\x74\x14\x68\xd6\x49\xd2\xa9\x34\xeb\x8e\xe5\x8d\xd8\x88\x17\x59\x22\x2e\xa5\x58\xa5\xe1\xb5\x9f\x49\xab\x33\x74\x5a\xb6\x37\x72\xba\x2f\x9b\x63\x1a\x66\xe6\x47\x8a\xd6\x7f\x1a\x25\x97\x7e\x24\x96\xfe\xbb\x70\x99\x2f\xc5\x34\x95\x7e\x16\x42\x95\x51\xb8\x84\x4e\x92\x59\x59\xe2\x0a\x4b\xcf\x95\x4c\x2b\xa2\xda\x10\x4b\xe9\xc7\x4a\xc4\x89\x6e\x69\xf5\x9b\x5f\x78\x2d\xc7\x6e\x8e\xbb\xc3\x81\xd7\xeb\xf6\xbb\x34\xc1\x6a\x03\x23\x8c\xfc\x6c\xba\x10\xa4\x20\xf1\x36\x97\xb9\x14\x91\x8c\xe7\xd9\xa2\x82\x31\xaf\x58\xf1\xbe\x12\x91\x9f\x62\x13\x70\x81\xb1\x54\x78\x89\x9d\x1b\x4d\x7a\x3d\xcf\xb1\x3f\x9f\xd8\xee\xd8\xc3\xdf\x89\xed\xf5\xec\xc1\xe9\xf8\x0c\x62\x1b\x7b\xf8\x07\xba\xcc\xc3\x73\xc8\x1f\xe4\xcb\x4b\x4c\xac\x3c\xd5\x50\x2a\x6d\x19\x7e\x2a\xd9\x3a\x64\x20\xc2\x18\x16\x02\x55\xbd\x5b\x45\x09\x9e\x92\x91\x58\xf6\x17\xa3\xde\xd0\x81\x5a\x9a\xa7\xb0\x35\x6f\x30\xe9\x43\xfa\xfe\xde\x96\xd0\x50\xa9\xfc\x87\xc5\xb1\x98\xae\xeb\x4e\xee\x08\x69\x6c\x0b\x59\xab\x37\x59\x42\x59\xea\x8e\x10\x7f\x9a\x85\xd7\x61\x76\x2b\x66\x52\x06\x56\xc7\xb6\xdb\x1e\xab\x73\xd8\x87\x1a\x8d\xc0\x43\xc8\x7b\xe9\x47\x50\x1f\xc4\x5d\xc0\x0a\x97\xb2\x3a\x4d\xb0\x94\x0b\xec\x44\xe6\x8b\xcc\x9f\x57\x68\x73\x02\x71\x79\x2b\x9a\x71\x90\x26\x61\x20\x7e\x82\x7e\x35\x9a\x49\x33\xc6\x58\xd7\x7e\x84\x67\xdc\x09\x9b\x06\xdd\xef\xc4\x18\x5d\xdb\x6f\x10\x2a\x1f\x6a\xdf\x11\x37\x61\x14\x89\x85\x7f\x4d\xae\x25\xd7\xf6\xac\xb2\xdb\x88\xac\xa5\x4f\xaa\x0b\xe3\x59\x72\x24\x16\x59\xb6\x52\x47\xf5\x3a\xcc\x5a\x46\x09\x4c\x43\xd5\xe6\x49\x32\x8f\x64\x0d\x8b\xac\xdf\xc8\xcb\x7a\xbe\x0a\x60\x79\xaa\xbe\xbf\xd7\x78\x52\x6f\x34\xea\x6e\xbe\x5a\x25\x69\x56\x9d\x25\x69\xb5\xb4\x80\x6a\x18\x57\x5b\x8b\x34\xc1\xfd\xc1\xa7\xfc\xd2\x4c\xdf\x1a\x9f\xd9\x7d\x1b\x6a\xc0\x1e\x79\x7d\x7b\xdc\xf4\xc6\xcd\x53\xa8\xe2\xe2\xe3\xd9\xec\xf0\xe0\xc9\xc1\x05\x9b\x40\xcd\x0f\x96\x61\xbc\x6d\x08\x64\xa4\x0f\x6f\x19\x79\xf5\xf6\x8e\x1d\xee\x7d\x68\x4b\x0f\x8a\x70\xec\xd1\xf0\x41\x11\x71\x92\x21\xc6\x3c\x2c\x64\x30\x1c\x77\x5b\x77\x0d\xf0\x70\x4b\x4c\x92\xce\xfd\x38\xfc\x5a\xbb\xe5\x43\xb2\x86\xce\xe9\x07\xf3\xb1\xde\x2c\xfd\xf4\x2a\x48\x6e\x58\x43\x76\x4c\x9b\x8c\xed\x4d\x03\x58\x00\xfa\x5d\xc2\xdd\xaf\xe0\x13\x99\x8c\x15\xc4\x5b\xf6\xa0\x79\xd2\xb3\x3d\x44\x98\x36\x9c\x78\x60\x7b\x27\x70\xe9\x17\xa5\x70\xd1\x0b\x15\x47\x85\x69\xae\xb2\x64\x29\x26\x4e\xaf\xea\x4e\x69\x2f\x4b\xcb\x44\xe8\xe4\xb9\x91\x5f\x87\xf1\x95\x12\x37\x0b\x19\x43\xa1\x71\x20\xd3\x30\x9e\x8b\xbe\x99\x11\xc4\x61\xb7\x31\xba\xbf\x5c\x61\x56\x88\xb0\x95\xa5\x3f\x8f\x11\xe7\x74\xd0\xf7\x20\xdd\x73\x5b\x64\x04\x2e\xc2\xa4\xf5\x06\xbb\x8a\x40\x77\x6e\x8d\x9c\xe1\x78\x08\xb3\xc0\xbc\xc8\x0a\xad\xf6\xb0\xdf\xec\x0e\x70\xc7\x71\x7b\x91\xa8\x8c\x43\x2b\xf5\xc7\xc3\x4f\x76\x8b\xf6\x8f\xc9\x5e\x3f\xd9\xd5\xcd\x71\xf3\xc9\xee\xd9\x78\x3c\xf2\x46\x43\x67\xfc\x58\xd5\x2d\xbe\x69\xb6\xdb\x08\xf7\xd6\xfa\x05\x04\x1c\x50\xb4\xc1\xd2\x49\xb8\xd8\x6d\xf7\xbf\x7c\x4c\xeb\xe6\xb9\x13\xa8\x88\x9b\x24\xbd\x22\x7b\xdb\x55\x39\x02\x1d\x56\xed\xba\x67\x42\x1b\xff\x63\xf8\x36\x4c\x40\xd1\xb2\xe1\x12\x42\x69\xdc\xa9\x41\x5c\x37\x16\x4b\xcc\x54\x4c\x7d\x05\xe5\x11\xf2\x04\x09\x99\x0c\xc2\x38\x74\x87\xe0\x3d\xd5\xc8\x54\x76\xc3\x6b\x0a\x00\xd4\xb9\x19\x65\x30\x0e\x0a\xd0\x71\x74\x6b\x90\x2b\xe5\x71\xb5\x8e\x20\x28\x90\x84\x42\x24\x90\x24\x28\x02\x4b\x4c\x8d\xd6\xc5\x2f\x6b\x56\x6f\xd8\x6a\x22\xc4\x6e\x14\x45\xba\x84\x82\xd6\x4a\xbc\xab\x1f\x80\x92\x8e\x12\x3c\xd0\x0c\x40\x91\x63\xb7\x79\x73\x69\x18\xff\xda\x0f\x23\x7a\x6d\xb5\xbb\x2e\x9b\x11\x35\xdb\x98\xce\xab\x85\x64\xf0\x84\x73\x8a\xcb\x3c\x8c\x32\xd8\x6e\Line truncated
|
||||
var _confAppIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x5a\x5b\x6f\xe3\x48\x76\x7e\xe7\xaf\xa8\xf1\x64\xd2\xdd\x81\x2e\x96\xdd\x76\xf7\x78\xd7\x9b\x91\x25\xca\xd6\xb6\x6e\x43\x4a\xdd\xd3\xd3\x30\x68\x5a\x2c\x49\x1c\x53\xa4\x9a\x45\xda\xed\x41\x10\xec\x20\x0f\x01\xf2\x9a\x20\x79\x09\x82\xe4\x21\x08\xb0\xb9\x20\x8b\xbc\xec\x26\xc8\xd3\x20\xef\x3d\xff\x61\x31\x9b\xfc\x8b\x7c\xe7\x54\x51\xa2\xdc\x1e\x27\x0b\x24\x73\xb1\x78\xa9\x3a\x55\x75\xea\x9c\xf3\x7d\xe7\x14\x3f\x16\x03\xfb\xa5\xed\x08\xfe\xd3\x1f\xb6\xbb\x9d\xd7\x62\x7c\xd6\x75\x45\xa7\xdb\xb3\xad\x8f\xc5\xa8\x67\x37\x5d\x5b\xf4\x9b\x2f\x6c\xd1\x3a\x6b\x0e\x4e\x6d\x57\x0c\x07\xa2\x35\x74\x1c\xdb\x1d\x0d\x07\xed\xee\xe0\x54\xb4\x26\xee\x78\xd8\xc7\xc3\x41\xa7\x7b\xaa\x7b\x5a\x3f\x12\xcd\xd5\x4a\xc4\xfe\x52\x8a\x6c\xe1\x67\x42\x2d\x92\x1b\x25\x92\x58\xc8\x6b\x99\xde\x8a\x95\x3f\xc7\x8b\x30\x8b\xa4\xd5\x1c\x8d\xbc\x41\xb3\x6f\x8b\x63\x71\x9a\xcc\xd5\x11\xfe\x8a\xd3\x30\x13\xae\x4c\xaf\xc3\xa9\x84\xa4\xd6\xc2\x8f\xd1\x1c\xcf\xc2\x99\xb8\x4d\x72\x91\xe6\xb1\x88\x92\xa9\x1f\x45\xb7\x96\x33\x19\x78\x13\x17\xb3\x3f\x16\xf3\x30\x43\x6b\x3b\xcc\x16\x32\x15\x3b\x81\xbc\xde\xa9\x88\x9d\x55\x9a\x04\x3b\x22\xc1\x83\x4c\xaa\x0c\x4f\x02\x39\xf3\xf3\x08\xb2\x94\x6e\xc3\x12\xb0\x74\x9a\x00\xee\x2d\xeb\x4d\x2a\x57\x89\x0a\xb3\x24\xbd\x3d\xb7\x9c\xe1\x70\x2c\x8e\x2d\xb7\xe5\x74\x47\x63\x6f\xfc\x7a\x44\xcd\x2e\x7d\xb5\xc0\x48\x6d\x23\xa9\x39\x70\xbb\x62\xba\xf0\x53\x25\x33\x8b\x6e\x3c\xa8\xca\x71\x6d\x74\x14\x68\xd6\x49\xd2\xa9\x34\xeb\x8e\xe5\x8d\xd8\x88\x17\x59\x22\x2e\xa5\x58\xa5\xe1\xb5\x9f\x49\xab\x33\x74\x5a\xb6\x37\x72\xba\x2f\x9b\x63\x1a\x66\xe6\x47\x8a\xd6\x7f\x1a\x25\x97\x7e\x24\x96\xfe\xbb\x70\x99\x2f\xc5\x34\x95\x7e\x16\x42\x95\x51\xb8\x84\x4e\x92\x59\x59\xe2\x0a\x4b\xcf\x95\x4c\x2b\xa2\xda\x10\x4b\xe9\xc7\x4a\xc4\x89\x6e\x69\xf5\x9b\x5f\x78\x2d\xc7\x6e\x8e\xbb\xc3\x81\xd7\xeb\xf6\xbb\x34\xc1\x6a\x03\x23\x8c\xfc\x6c\xba\x10\xa4\x20\xf1\x36\x97\xb9\x14\x91\x8c\xe7\xd9\xa2\x82\x31\xaf\x58\xf1\xbe\x12\x91\x9f\x62\x13\x70\x81\xb1\x54\x78\x89\x9d\x1b\x4d\x7a\x3d\xcf\xb1\x3f\x9f\xd8\xee\xd8\xc3\xdf\x89\xed\xf5\xec\xc1\xe9\xf8\x0c\x62\x1b\xbb\xf8\x07\xba\xcc\xc3\x73\xc8\x1f\xe4\xcb\x4b\x4c\xac\x3c\xd5\x50\x2a\x6d\x19\x7e\x2a\xd9\x3a\x64\x20\xc2\x18\x16\x02\x55\xbd\x5b\x45\x09\x9e\x92\x91\x58\xf6\x17\xa3\xde\xd0\x81\x5a\x9a\xa7\xb0\x35\x6f\x30\xe9\x43\xfa\xde\xee\x96\xd0\x50\xa9\xfc\x87\xc5\xb1\x98\xae\xeb\x4e\xee\x08\x69\x6c\x0b\x59\xab\x37\x59\x42\x59\xea\x8e\x10\x7f\x9a\x85\xd7\x61\x76\x2b\x66\x52\x06\x56\xc7\xb6\xdb\x1e\xab\x73\xd8\x87\x1a\x8d\xc0\x03\xc8\x7b\xe9\x47\x50\x1f\xc4\x5d\xc0\x0a\x97\xb2\x3a\x4d\xb0\x94\x0b\xec\x44\xe6\x8b\xcc\x9f\x57\x68\x73\x02\x71\x79\x2b\x9a\x71\x90\x26\x61\x20\x7e\x82\x7e\x35\x9a\x49\x33\xc6\x58\xd7\x7e\x84\x67\xdc\x09\x9b\x06\xdd\xef\xc4\x18\x5d\xdb\x6f\x10\x2a\x1f\x6a\xdf\x11\x37\x61\x14\x89\x85\x7f\x4d\xae\x25\xd7\xf6\xac\xb2\xdb\x88\xac\xa5\x4f\xaa\x0b\xe3\x59\x72\x24\x16\x59\xb6\x52\x47\xf5\x3a\xcc\x5a\x46\x09\x4c\x43\xd5\xe6\x49\x32\x8f\x64\x0d\x8b\xac\xdf\xc8\xcb\x7a\xbe\x0a\x60\x79\xaa\xbe\xb7\xdb\x78\x5a\x6f\x34\xea\x6e\xbe\x5a\x25\x69\x56\x9d\x25\x69\xb5\xb4\x80\x6a\x18\x57\x5b\x8b\x34\xc1\xfd\xfe\xa7\xfc\xd2\x4c\xdf\x1a\x9f\xd9\x7d\x1b\x6a\xc0\x1e\x79\x7d\x7b\xdc\xf4\xc6\xcd\x53\xa8\xe2\xe2\xe3\xd9\xec\x60\xff\xe9\xfe\x05\x9b\x40\xcd\x0f\x96\x61\xbc\x6d\x08\x64\xa4\x0f\x6f\x19\x79\xf5\xf6\x8e\x1d\xec\x7e\x68\x4b\x0f\x8a\x70\xec\xd1\xf0\x41\x11\x71\x92\x21\xc6\x3c\x2c\x64\x30\x1c\x77\x5b\x77\x0d\xf0\x60\x4b\x4c\x92\xce\xfd\x38\xfc\x5a\xbb\xe5\x43\xb2\x86\xce\xe9\x07\xf3\xb1\xde\x2c\xfd\xf4\x2a\x48\x6e\x58\x43\x76\x4c\x9b\x8c\xed\x4d\x03\x58\x00\xfa\x5d\xc2\xdd\xaf\xe0\x13\x99\x8c\x15\xc4\x5b\xf6\xa0\x79\xd2\xb3\x3d\x44\x98\x36\x9c\x78\x60\x7b\x27\x70\xe9\x17\xa5\x70\xd1\x0b\x15\x47\x85\x69\xae\xb2\x64\x29\x26\x4e\xaf\xea\x4e\x69\x2f\x4b\xcb\x44\xe8\xe4\xb9\x91\x5f\x87\xf1\x95\x12\x37\x0b\x19\x43\xa1\x71\x20\xd3\x30\x9e\x8b\xbe\x99\x11\xc4\x61\xb7\x31\xba\xbf\x5c\x61\x56\x88\xb0\x95\xa5\x3f\x8f\x11\xe7\x74\xd0\xf7\x20\xdd\x73\x5b\x64\x04\x2e\xc2\xa4\xf5\x06\xbb\x8a\x40\x77\x6e\x8d\x9c\xe1\x78\x08\xb3\xc0\xbc\xc8\x0a\xad\xf6\xb0\xdf\xec\x0e\x70\xc7\x71\x7b\x91\xa8\x8c\x43\x2b\xf5\xc7\xc3\x4f\x1e\x17\xed\x9f\x90\xbd\x7e\xf2\x58\x37\xc7\xcd\x27\x8f\xcf\xc6\xe3\x91\x37\x1a\x3a\xe3\x27\xaa\x6e\xf1\x4d\xb3\xdd\x46\xb8\xb7\xd6\x2f\x20\x60\x9f\xa2\x0d\x96\x4e\xc2\xc5\xe3\x76\xff\xcb\x27\xb4\x6e\x9e\x3b\x81\x8a\xb8\x49\xd2\x2b\xb2\xb7\xc7\x2a\x47\xa0\xc3\xaa\x5d\xf7\x4c\x68\xe3\x7f\x02\xdf\x86\x09\x28\x5a\x36\x5c\x42\x28\x8d\x3b\x35\x88\xeb\xc6\x62\x89\x99\x8a\xa9\xaf\xa0\x3c\x42\x9e\x20\x21\x93\x41\x18\x87\xee\x10\xbc\xa7\x1a\x99\xca\x6e\x78\x4d\x01\x80\x3a\x37\xa3\x0c\xc6\x41\x01\x3a\x8e\x6e\x0d\x72\xa5\x3c\xae\xd6\x11\x04\x05\x92\x50\x88\x04\x92\x04\x45\x60\x89\xa9\xd1\xba\xf8\x65\xcd\xea\x0d\x5b\x4d\x84\xd8\x8d\xa2\x48\x97\x50\xd0\x5a\x89\x77\xf5\x03\x50\xd2\x51\x82\x07\x9a\x01\x28\x72\xec\x36\x6f\x2e\x0d\xe3\x5f\xfb\x61\x44\xaf\xad\x76\xd7\x65\x33\xa2\x66\x1b\xd3\x79\xb5\x90\x0c\x9e\x70\x4e\x71\x99\x87\x51\x06\xdb\Line truncated
|
||||
|
||||
func confAppIniBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -297,7 +297,7 @@ func confAppIni() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "conf/app.ini", size: 11093, mode: os.FileMode(420), modTime: time.Unix(1456624922, 0)}
|
||||
info := bindataFileInfo{name: "conf/app.ini", size: 11189, mode: os.FileMode(420), modTime: time.Unix(1456792038, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user