bad style
This commit is contained in:
parent
0c2d346455
commit
457429ccf1
1 changed files with 1 additions and 4 deletions
|
@ -12,10 +12,7 @@ task 'docker:test' do
|
|||
unless ENV['NO_UPDATE']
|
||||
exit 1 unless run_or_fail("git remote update")
|
||||
|
||||
checkout = "master"
|
||||
if hash = ENV['COMMIT_HASH']
|
||||
checkout = hash
|
||||
end
|
||||
checkout = ENV['COMMIT_HASH'] || "master"
|
||||
exit 1 unless run_or_fail("git checkout #{checkout}")
|
||||
exit 1 unless run_or_fail("bundle")
|
||||
end
|
||||
|
|
Reference in a new issue