diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 10:36:40 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-10-25 10:52:03 +0100 |
commit | e0225aea1beb741601b888d4f505abd97f0f67a6 (patch) | |
tree | 818562012bb78cdbd73413b01558adef1bdfcc09 /lib/gitlab/git_access.rb | |
parent | cb5f4d0cad520629aecaa838ddf1e84d7265ff49 (diff) | |
download | gitlab-ce-e0225aea1beb741601b888d4f505abd97f0f67a6.tar.gz |
Iterating through commit list times out
Validating each commit on ChangeAccess times out if
it already took too long to complete.
Improves the TimedLogger specs to not make use of a stubbed
class anymore
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb index 1da466cbfd6..802fa65dd63 100644 --- a/lib/gitlab/git_access.rb +++ b/lib/gitlab/git_access.rb @@ -27,13 +27,13 @@ module Gitlab cannot_push_to_read_only: "You can't push code to a read-only GitLab instance." }.freeze + INTERNAL_TIMEOUT = 50.seconds.freeze LOG_HEADER = <<~MESSAGE Push operation timed out Timing information for debugging purposes: MESSAGE - INTERNAL_TIMEOUT = 50.seconds.freeze DOWNLOAD_COMMANDS = %w{git-upload-pack git-upload-archive}.freeze PUSH_COMMANDS = %w{git-receive-pack}.freeze ALL_COMMANDS = DOWNLOAD_COMMANDS + PUSH_COMMANDS |