Commit e5c9bf36 authored by Robert Speicher's avatar Robert Speicher

Merge branch '1537-remove-unnecessary-method' into 'master'

Remove redundant `Repository#fetch_remote_forced!` method

Closes #1537

See merge request !1080
parents 57293569 d82fd69a
......@@ -279,10 +279,6 @@ class Repository
end
end
def fetch_remote_forced!(remote)
gitlab_shell.fetch_remote(storage_path, path_with_namespace, remote, forced: true)
end
def ref_names
branch_names + tag_names
end
......@@ -1151,7 +1147,7 @@ class Repository
def fetch_geo_mirror(url)
add_remote(Repository::MIRROR_GEO, url)
set_remote_as_mirror(Repository::MIRROR_GEO)
fetch_remote_forced!(Repository::MIRROR_GEO)
fetch_remote(Repository::MIRROR_GEO, forced: true)
end
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