diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-02 06:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-02 06:09:24 +0300 |
commit | 81bf69a3296ecd6c0939826d7ec42566ea50fef2 (patch) | |
tree | 17feee56fd435c323b1b81be2f65e0f84c982dd3 /app/models/repository.rb | |
parent | d5c627d3cc6dee1b93be26898800088c0c3e71a9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 346478b6689..805861de94c 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -941,6 +941,10 @@ class Repository end end + def clone_as_mirror(url, http_authorization_header: "") + import_repository(url, http_authorization_header: http_authorization_header, mirror: true) + end + def fetch_as_mirror(url, forced: false, refmap: :all_refs, prune: true, http_authorization_header: "") fetch_remote(url, refmap: refmap, forced: forced, prune: prune, http_authorization_header: http_authorization_header) end |