diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-09 10:19:39 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-09 10:19:39 +0300 |
commit | d2a6a1623e8a808a14f4ab8f4f1dc07ccb944443 (patch) | |
tree | b217976842d61f9d0a716d0cba5252cabd05366c /lib | |
parent | 0378340a6fb7a48e55355b2d61708811ee9a9223 (diff) | |
download | gitlab-ci-d2a6a1623e8a808a14f4ab8f4f1dc07ccb944443.tar.gz |
Dont need chdir since we pass cwd to childprocess. Show user avatars on users page
Diffstat (limited to 'lib')
-rw-r--r-- | lib/runner.rb | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/runner.rb b/lib/runner.rb index af57fc5..c7205b7 100644 --- a/lib/runner.rb +++ b/lib/runner.rb @@ -39,17 +39,15 @@ class Runner commands = commands.lines.to_a commands.unshift(prepare_project_cmd(path, build.sha)) - Dir.chdir(path) do - commands.each do |line| - status = command(line, path) - build.write_trace(@output) + commands.each do |line| + status = command(line, path) + build.write_trace(@output) - return if build.canceled? + return if build.canceled? - unless status - build.drop! - return - end + unless status + build.drop! + return end end |