Commit d82fd69a authored by Ruben Davila's avatar Ruben Davila

Remove no longer required method from Repository.

We already have `#fetch_remote` which accepts a `forced` option and is
used in other sections of the codebase.
parent 85ef6a6f
...@@ -279,10 +279,6 @@ class Repository ...@@ -279,10 +279,6 @@ class Repository
end end
end end
def fetch_remote_forced!(remote)
gitlab_shell.fetch_remote(storage_path, path_with_namespace, remote, forced: true)
end
def ref_names def ref_names
branch_names + tag_names branch_names + tag_names
end end
...@@ -1151,7 +1147,7 @@ class Repository ...@@ -1151,7 +1147,7 @@ class Repository
def fetch_geo_mirror(url) def fetch_geo_mirror(url)
add_remote(Repository::MIRROR_GEO, url) add_remote(Repository::MIRROR_GEO, url)
set_remote_as_mirror(Repository::MIRROR_GEO) set_remote_as_mirror(Repository::MIRROR_GEO)
fetch_remote_forced!(Repository::MIRROR_GEO) fetch_remote(Repository::MIRROR_GEO, forced: true)
end end
def upstream_branches def upstream_branches
......
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