diff options
author | Justin DiPierro <dipierroj@gmail.com> | 2016-09-29 12:46:54 -0400 |
---|---|---|
committer | Justin DiPierro <dipierroj@gmail.com> | 2016-10-06 11:22:37 -0400 |
commit | fe46e4eb35dd6728a8a5ebcee9cc05a4613effbf (patch) | |
tree | 241a0fad11b7719f193f3deb6b8818c37159ec8c /lib/api/helpers.rb | |
parent | 9a13f885a9dc7b072d41160a6d3db965c9114b4b (diff) | |
download | gitlab-ce-fe46e4eb35dd6728a8a5ebcee9cc05a4613effbf.tar.gz |
Load Github::Shell's secret token from file on initialization instead of every request.
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 8b8c4eb4d46..e3b947adcc3 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -433,7 +433,7 @@ module API end def secret_token - File.read(Gitlab.config.gitlab_shell.secret_file).chomp + Gitlab::Shell.secret_token end def send_git_blob(repository, blob) |