diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-09-15 15:45:10 +0200 |
---|---|---|
committer | Paco Guzman <pacoguzmanp@gmail.com> | 2016-09-27 12:37:36 +0200 |
commit | 192e2bd367494bf66746c8971896a2d9cb84fc92 (patch) | |
tree | c3a252d71cab51e47d4f1a03c40abe0a1851f6f2 /lib/gitlab_config.rb | |
parent | b71ca5da9fde4fa8457af146bd090ec7caa28d60 (diff) | |
download | gitlab-shell-59-git-tracing.tar.gz |
Enable GIT_TRACE/GIT_TRACE_PACKET/GIT_TRACE_PERFORMANCE by providing the git_trace_log_file config key59-git-tracing
The value of the variable if present must be a writable absolute path. If it’s
not the case we log a proper message and not enable tracing to not throw output to the users.
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r-- | lib/gitlab_config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index beaf173..781c706 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -50,4 +50,8 @@ class GitlabConfig def git_annex_enabled? @config['git_annex_enabled'] ||= false end + + def git_trace_log_file + @config['git_trace_log_file'] + end end |