diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 19:35:06 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:41 +0300 |
commit | 87467127b6e0927d56e532f4d6adc4091ff9ef6f (patch) | |
tree | 10e220a998ca2ef41221a6f53b4dc08c762df607 /app/models/deployment.rb | |
parent | 5f72aaa303aabdb2258959e84b446074bf8a6915 (diff) | |
download | gitlab-ce-87467127b6e0927d56e532f4d6adc4091ff9ef6f.tar.gz |
replace `is_ancestor?` with `ancestor?`
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r-- | app/models/deployment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb index 056c49e7162..7bcded5b5e1 100644 --- a/app/models/deployment.rb +++ b/app/models/deployment.rb @@ -49,7 +49,7 @@ class Deployment < ActiveRecord::Base # created before then could have a `sha` referring to a commit that no # longer exists in the repository, so just ignore those. begin - project.repository.is_ancestor?(commit.id, sha) + project.repository.ancestor?(commit.id, sha) rescue Rugged::OdbError false end |