Commit graph

5 commits

Author SHA1 Message Date
Douglas Barbosa Alexandre
951144536a
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.
2018-09-21 14:29:59 -03:00
Douglas Barbosa Alexandre
8850fb9d67
Synchronize the default branch when updating a remote mirror 2018-09-10 16:12:49 -03:00
Stan Hu
578137f6e4 Fix remote mirrors failing if Git remotes have not been added
Remote mirrors only get created when the URL changes, However, during the GCP
migration, the remote mirror did not get created automatically. Plus, there's
no guarantee someone restoring a repository from backup would have this
remote. We now add the remote each time we attempt to fetch from the
repository.

This works because Gitaly doesn't throw up an exception or error if the
remote already exists:
https://gitlab.com/gitlab-org/gitaly/issues/1317

In the future, we should attempt to add if the remote doesn't exist:
https://gitlab.com/gitlab-org/gitaly/issues/1316

Closes #50562
2018-08-22 17:02:09 -07:00
gfyoung
fbde835404 Enable more frozen string in app/services/**/*.rb
Partially addresses #47424.
2018-07-17 15:19:40 -07:00
Tiago Botelho
9a13059332 Backports every CE related change from ee-5484 to CE 2018-05-07 11:59:51 +02:00