Commit 8ec1dcef authored by Douwe Maan's avatar Douwe Maan

Merge branch 'move-rugged' into 'master'

Remove some Rugged dependencies from Repository

See merge request gitlab-org/gitlab-ee!4333
parents 8ae67a61 c8d62c39
......@@ -869,7 +869,7 @@ class Repository
upstream_commit = commit("refs/remotes/#{MIRROR_REMOTE}/#{branch_name}")
if upstream_commit
!rugged_is_ancestor?(branch_commit.id, upstream_commit.id)
!raw_repository.ancestor?(branch_commit.id, upstream_commit.id)
else
false
end
......@@ -880,7 +880,7 @@ class Repository
upstream_commit = commit("refs/remotes/#{remote_ref}/#{branch_name}")
if upstream_commit
!rugged_is_ancestor?(upstream_commit.id, branch_commit.id)
!raw_repository.ancestor?(upstream_commit.id, branch_commit.id)
else
false
end
......@@ -984,12 +984,6 @@ class Repository
end
end
def main_language
return unless exists?
Linguist::Repository.new(rugged, rugged.head.target_id).language
end
# Caches the supplied block both in a cache and in an instance variable.
#
# The cache key and instance variable are named the same way as the value of
......
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