Commit 970a07e8 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge branch 'abort-check-path' into 'master'

Abort check path

Fixes #13

See merge request !35
parents 91753e93 81a67f75
......@@ -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
......@@ -167,7 +167,7 @@ describe GitlabShell do
before { File.stub(:absolute_path) { 'y' } }
subject { -> { shell.send(:escape_path, 'z') } }
it { should raise_error(RuntimeError, "Wrong repository path") }
it { should raise_error(SystemExit, "Wrong repository path") }
end
def ssh_cmd(cmd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment