summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-07-06 17:17:14 +0000
committerStan Hu <stanhu@gmail.com>2016-07-06 17:17:14 +0000
commite8a4dc7018bba7f0321ce8d5d7758629c6503075 (patch)
treecedebfdfe39f22b80991642d4b314ca3ad8eae2a
parentdd6eed168d75030a028da4f1ba5b5f1483de395a (diff)
parent55df77e7b45a7cd2b37c42ce879d8c47f663822c (diff)
downloadgitlab-shell-e8a4dc7018bba7f0321ce8d5d7758629c6503075.tar.gz
Merge branch '48-regression-in-v3-1-0-vs-v3-0-0' into 'master' v3.2.0
Add an error message when using shell commands with incompatible GitLab versions Closes #48 See merge request !70
-rw-r--r--CHANGELOG1
-rw-r--r--lib/gitlab_shell.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 31cda72..6c735ee 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,6 @@
v3.2.0
- Allow GitLab Shell to check for allowed access based on the used Git protocol
+ - Add an error message when using shell commands with incompatible GitLab versions
v3.1.0
- Refactor repository paths handling to allow multiple git mount points
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