summaryrefslogtreecommitdiff
path: root/lib/gitlab_shell.rb
diff options
context:
space:
mode:
authorJob van der Voort <jobvandervoort@gmail.com>2014-08-27 12:13:56 +0200
committerJob van der Voort <jobvandervoort@gmail.com>2014-08-27 12:13:56 +0200
commit81a67f7533a9999a404a03c8c259b3233a2b8c40 (patch)
tree48e98dec650ca396c094fde873087d18011fc0e9 /lib/gitlab_shell.rb
parent91753e937e729c0fedc9a5dd7ae52b85436b4971 (diff)
downloadgitlab-shell-81a67f7533a9999a404a03c8c259b3233a2b8c40.tar.gz
use abort isntead of raise when checking path
Diffstat (limited to 'lib/gitlab_shell.rb')
-rw-r--r--lib/gitlab_shell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 086e36b..6edb748 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -93,7 +93,7 @@ class GitlabShell
if File.absolute_path(full_repo_path) == full_repo_path
path
else
- raise "Wrong repository path"
+ abort "Wrong repository path"
end
end
end