summaryrefslogtreecommitdiff
path: root/app/models/repository.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-10 16:12:49 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-09-10 16:12:49 -0300
commit8850fb9d671635178c2ef307dcf8df083a7285d6 (patch)
treed2a64514195199e04386499bf4c843888b43b96e /app/models/repository.rb
parent7f0a346ecd48e814eb44741ff30edf5eda3413b8 (diff)
downloadgitlab-ce-8850fb9d671635178c2ef307dcf8df083a7285d6.tar.gz
Synchronize the default branch when updating a remote mirror
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r--app/models/repository.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 929d28b9d88..e98021af818 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -24,6 +24,7 @@ class Repository
delegate :ref_name_for_sha, to: :raw_repository
delegate :bundle_to_disk, to: :raw_repository
+ delegate :find_remote_root_ref, to: :raw_repository
CreateTreeError = Class.new(StandardError)