diff options
author | Rémy Coutable <remy@rymai.me> | 2018-08-24 11:40:02 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-08-24 11:40:02 +0300 |
commit | 85b59a1739675dc06f6e89066a8ca83298fbb320 (patch) | |
tree | 4a4613d08a7dd8f4fdab217cb7f8fc193de4b8f3 /app/services | |
parent | 842377ab3c5b80a3758ad8c36dc3358bd265bc10 (diff) | |
parent | 578137f6e4817591e98019bf3e88065fae0a2879 (diff) |
Merge branch 'sh-fix-issue-50562' into 'master'
Fix remote mirrors failing if Git remotes have not been added
Closes #50562
See merge request gitlab-org/gitlab-ce!21351
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/update_remote_mirror_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/projects/update_remote_mirror_service.rb b/app/services/projects/update_remote_mirror_service.rb index 4651f7c4f8f..591b38b8151 100644 --- a/app/services/projects/update_remote_mirror_service.rb +++ b/app/services/projects/update_remote_mirror_service.rb @@ -10,6 +10,7 @@ module Projects return success unless remote_mirror.enabled? begin + remote_mirror.ensure_remote! repository.fetch_remote(remote_mirror.remote_name, no_tags: true) opts = {} |