GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit 10ae0d83 authored by Maxim Rydkin's avatar Maxim Rydkin

replace `is_ancestor` with `ancestor?`

parent 90112f57
......@@ -12,7 +12,7 @@ def self.force_push?(project, oldrev, newrev)
!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,
......
......@@ -440,7 +440,7 @@ def rugged_is_ancestor?(ancestor_id, descendant_id)
# Returns true is +from+ is direct ancestor to +to+, otherwise false
def ancestor?(from, to)
gitaly_commit_client.is_ancestor(from, to)
gitaly_commit_client.ancestor?(from, to)
end
# Return an array of Diff objects that represent the diff
......
......@@ -22,7 +22,7 @@ def ls_files(revision)
end
end
def is_ancestor(ancestor_id, child_id)
def ancestor?(ancestor_id, child_id)
request = Gitaly::CommitIsAncestorRequest.new(
repository: @gitaly_repo,
ancestor_id: ancestor_id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment