diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-21 19:58:45 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-09-21 20:29:59 +0300 |
commit | 951144536a7e87f66564eb8e85e7aa3dc1b1e748 (patch) | |
tree | ed966230b60090218a70cbd8b2a4070782c38cc8 /app/services/projects/update_remote_mirror_service.rb | |
parent | 8f191590447d8e8aa375f1c1104540db5473ce51 (diff) |
Doesn't synchronize default branch for push mirrors
We should not synchronize the source repository with
the target root ref while updating a push mirror.
Diffstat (limited to 'app/services/projects/update_remote_mirror_service.rb')
-rw-r--r-- | app/services/projects/update_remote_mirror_service.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/services/projects/update_remote_mirror_service.rb b/app/services/projects/update_remote_mirror_service.rb index 85b9eb02803..9d0877d1ab2 100644 --- a/app/services/projects/update_remote_mirror_service.rb +++ b/app/services/projects/update_remote_mirror_service.rb @@ -12,7 +12,6 @@ module Projects begin remote_mirror.ensure_remote! repository.fetch_remote(remote_mirror.remote_name, no_tags: true) - project.update_root_ref(remote_mirror.remote_name) opts = {} if remote_mirror.only_protected_branches? |