summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/chain/command.rb
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-11-10 14:34:53 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-12-08 19:25:44 +0100
commit1bf580688890a3b13e7ac0468f29108dafe08f9e (patch)
tree634f058f9c005e1b15d5df88d14b0d25bacb40e4 /lib/gitlab/ci/pipeline/chain/command.rb
parentb278d886ba65e2d3d438352b6243cd33b1ba4636 (diff)
downloadgitlab-ce-1bf580688890a3b13e7ac0468f29108dafe08f9e.tar.gz
Use full ref when possible to avoid ambiguity
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 100b9521412..316c283d90b 100644
--- a/lib/gitlab/ci/pipeline/chain/command.rb
+++ b/lib/gitlab/ci/pipeline/chain/command.rb
@@ -54,7 +54,7 @@ module Gitlab
def protected_ref?
strong_memoize(:protected_ref) do
- project.protected_for?(ref)
+ project.protected_for?(origin_ref)
end
end
end