diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-24 20:52:43 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-08-29 11:14:42 +0300 |
commit | 10ae0d8316bd9ae5aa1ce46fcea3ec8f01a3b336 (patch) | |
tree | 2b9a0156b7eb07c6b7f910b1bb8d0ca6a6d7eb05 /lib/gitlab/checks/force_push.rb | |
parent | 90112f57d26a21a6c219e24367b7ef91d93858ad (diff) | |
download | gitlab-ce-10ae0d8316bd9ae5aa1ce46fcea3ec8f01a3b336.tar.gz |
replace `is_ancestor` with `ancestor?`
Diffstat (limited to 'lib/gitlab/checks/force_push.rb')
-rw-r--r-- | lib/gitlab/checks/force_push.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/checks/force_push.rb b/lib/gitlab/checks/force_push.rb index 714464fd5e7..dc5d285ea65 100644 --- a/lib/gitlab/checks/force_push.rb +++ b/lib/gitlab/checks/force_push.rb @@ -12,7 +12,7 @@ module Gitlab !project .repository .gitaly_commit_client - .is_ancestor(oldrev, newrev) + .ancestor?(oldrev, newrev) else Gitlab::Git::RevList.new( path_to_repo: project.repository.path_to_repo, |