diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 12:45:46 +0300 |
commit | a7b3560714b4d9cc4ab32dffcd1f74a284b93580 (patch) | |
tree | 7452bd5c3545c2fa67a28aa013835fb4fa071baf /app/models/environment.rb | |
parent | ee9173579ae56a3dbfe5afe9f9410c65bb327ca7 (diff) |
Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index a830c04f291..51a9024721b 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -235,10 +235,10 @@ class Environment < ApplicationRecord self.environment_type = names.many? ? names.first : nil end - def includes_commit?(commit) + def includes_commit?(sha) return false unless last_deployment - last_deployment.includes_commit?(commit) + last_deployment.includes_commit?(sha) end def last_deployed_at |