From 55df77e7b45a7cd2b37c42ce879d8c47f663822c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Rodr=C3=ADguez?= Date: Wed, 6 Jul 2016 12:57:03 -0400 Subject: Add an error message when using shell commands with incompatible GitLab versions --- lib/gitlab_shell.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/gitlab_shell.rb') diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index d9812ce..b6c358e 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -182,6 +182,7 @@ class GitlabShell private def repo_path=(repo_path) + raise ArgumentError, "Repository path not provided. Please make sure you're using GitLab v8.10 or later." unless repo_path raise InvalidRepositoryPathError if File.absolute_path(repo_path) != repo_path @repo_path = repo_path -- cgit v1.2.1