diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2017-12-04 17:02:12 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2017-12-04 17:07:15 +0300 |
commit | bb02d12aaae970520dedc5fd51dccb432dfea28b (patch) | |
tree | 3828fa17c6df5d32b9a603c830d8116c68401103 | |
parent | eb1511c83aba99852f573abddf67ca86e67fa8f1 (diff) |
Raise an exception when Git::Env.all is called
Closes #686
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | ruby/lib/gitlab/git.rb | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cf4f102a..1022a32dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ UNRELEASED +- Raise an exception when Git::Env.all is called + https://gitlab.com/gitlab-org/gitaly/merge_requests/474 - Update vendored gitlab_git to c594659fea15c6dd17b https://gitlab.com/gitlab-org/gitaly/merge_requests/473 - More logging in housekeeping diff --git a/ruby/lib/gitlab/git.rb b/ruby/lib/gitlab/git.rb index 0423c9571..7be27bef6 100644 --- a/ruby/lib/gitlab/git.rb +++ b/ruby/lib/gitlab/git.rb @@ -143,3 +143,15 @@ class RequestStore false end end + +module Gitlab + module Git + class Env + NotAvailableInGitalyRuby = Class.new(StandardError) + + def self.all + raise NotAvailableInGitalyRuby + end + end + end +end |