mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 16:35:34 +08:00
bad style
This commit is contained in:
parent
0c2d346455
commit
457429ccf1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user