diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-23 16:51:55 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-23 16:59:58 +0100 |
commit | 7a1e93d35b7280db8bc4128862c86223d76a8d6d (patch) | |
tree | af2ef540c8a93a7739aa581a114a604fe03006dc /app/models/repository.rb | |
parent | 0e6beaf50c9233ca03083691856dea2883f71773 (diff) | |
download | gitlab-ce-7a1e93d35b7280db8bc4128862c86223d76a8d6d.tar.gz |
Rename fetch_refs to refmap
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 1b5eb8e2cea..c4784fd9235 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -972,14 +972,14 @@ class Repository run_git(args).first.lines.map(&:strip) end - def fetch_as_mirror(url, forced: false, fetch_refs: :all, remote_name: nil) + def fetch_as_mirror(url, forced: false, refmap: :all_refs, remote_name: nil) unless remote_name remote_name = "tmp-#{SecureRandom.hex}" tmp_remote_name = true end add_remote(remote_name, url) - set_remote_as_mirror(remote_name, fetch_refs: fetch_refs) + set_remote_as_mirror(remote_name, refmap: refmap) fetch_remote(remote_name, forced: forced) ensure remove_remote(remote_name) if tmp_remote_name |