GitalyClient::Commit#is_ancestor handles paths incorrectly
On GitalyClient::Commit#is_ancestor
it says project = Project.find_by_path(repository.path)
, where repository
is a Gitlab::Git::Repository
. But if with any project you try Project.find_by_path(project.repository.raw_repository.path)
it will always return nil
, because project.repository.raw_repository.path
is the filesystem path, and find_by_path
is looking for a namespace path. This was caught while working on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10298
/cc @bkc