Skip to content

Commit 55df77e

Browse files
committed
Add an error message when using shell commands with incompatible GitLab versions
1 parent dd6eed1 commit 55df77e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
v3.2.0
22
- Allow GitLab Shell to check for allowed access based on the used Git protocol
3+
- Add an error message when using shell commands with incompatible GitLab versions
34

45
v3.1.0
56
- Refactor repository paths handling to allow multiple git mount points

lib/gitlab_shell.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def gcryptsetup?(args)
182182
private
183183

184184
def repo_path=(repo_path)
185+
raise ArgumentError, "Repository path not provided. Please make sure you're using GitLab v8.10 or later." unless repo_path
185186
raise InvalidRepositoryPathError if File.absolute_path(repo_path) != repo_path
186187

187188
@repo_path = repo_path

0 commit comments

Comments
 (0)