summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-25 12:30:47 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-25 12:30:47 +0100
commit792d686dd95331367b3581d132badd027f18db44 (patch)
tree5a8a7d934964259b0710bbc04440f0ea78d5c9fc /lib/gitlab_net.rb
parentc5a7b76cc24e75e7024341e3cef248d7e53e2364 (diff)
downloadgitlab-shell-792d686dd95331367b3581d132badd027f18db44.tar.gz
Add missing 'require_relative' in gitlab_net.rb
Without this 'require' statement, you get the following error: ``` $ git ls-remote origin /home/git/gitlab-shell/lib/gitlab_net.rb:30:in `check_access': uninitialized constant GitlabNet::GitAccessStatus (NameError) from /home/git/gitlab-shell/lib/gitlab_shell.rb:63:in `validate_access' from /home/git/gitlab-shell/lib/gitlab_shell.rb:24:in `exec' from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>' fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ```
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index 1f27398..b003e76 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -4,6 +4,7 @@ require 'json'
require_relative 'gitlab_config'
require_relative 'gitlab_logger'
+require_relative 'gitlab_access'
class GitlabNet
def check_access(cmd, repo, actor, changes)