Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-12-08 13:50:45 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-08 14:01:15 +0300
commit865341acf881fc2e0e517acc164c69bcdda941f9 (patch)
tree435e07e24a8ca7ab99cc06c8605b47c3f550b09b /lib/gitlab/ci
parentad3be46b9fe7d6d42b30d257a923b0070f79da94 (diff)
Fix a bug of before_sha being inproperly evaluated to `checkout_sha`
Diffstat (limited to 'lib/gitlab/ci')
-rw-r--r--lib/gitlab/ci/pipeline/chain/command.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/command.rb b/lib/gitlab/ci/pipeline/chain/command.rb
index f74235d8452..6eaa8a9f911 100644
--- a/lib/gitlab/ci/pipeline/chain/command.rb
+++ b/lib/gitlab/ci/pipeline/chain/command.rb
@@ -46,7 +46,7 @@ module Gitlab
end
def before_sha
- checkout_sha || before_sha || Gitlab::Git::BLANK_SHA
+ before_sha || checkout_sha || Gitlab::Git::BLANK_SHA
end
def protected_ref?
@@ -54,10 +54,6 @@ module Gitlab
project.protected_for?(ref)
end
end
-
- def error(message)
- pipeline.errors.add(:base, message)
- end
end
end
end