summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/repository_mirroring.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/repository_mirroring.rb')
-rw-r--r--lib/gitlab/git/repository_mirroring.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository_mirroring.rb b/lib/gitlab/git/repository_mirroring.rb
index dc424a433fb..8a01f92e2af 100644
--- a/lib/gitlab/git/repository_mirroring.rb
+++ b/lib/gitlab/git/repository_mirroring.rb
@@ -26,7 +26,7 @@ module Gitlab
# When the remote repo does not have tags.
if target.nil? || path.nil?
Rails.logger.info "Empty or invalid list of tags for remote: #{remote}. Output: #{output}"
- return []
+ break []
end
name = path.split('/', 3).last