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:58:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-12-08 14:01:15 +0300
commitb5f6a5f91f1b39d710f33a010f2d4545fb914bd6 (patch)
tree16cb5077ab621841c57116dbce5f83768619caf2 /lib/gitlab/ci/pipeline/chain/command.rb
parent865341acf881fc2e0e517acc164c69bcdda941f9 (diff)
Add Chain::Command specs
Diffstat (limited to 'lib/gitlab/ci/pipeline/chain/command.rb')
-rw-r--r--lib/gitlab/ci/pipeline/chain/command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/pipeline/chain/command.rb b/lib/gitlab/ci/pipeline/chain/command.rb
index 6eaa8a9f911..7b19b10e05b 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
- before_sha || checkout_sha || Gitlab::Git::BLANK_SHA
+ self[:before_sha] || checkout_sha || Gitlab::Git::BLANK_SHA
end
def protected_ref?