Commit d565d692 authored by Ruben Davila's avatar Ruben Davila

Add some debug info for error related to fetching tags.

This will help us to debug: https://sentry.gitlap.com/gitlab/gitlabcom/issues/4469/events
parent 0f4cf609
......@@ -52,8 +52,11 @@ module Gitlab
output.lines.each do |line|
target, path = line.strip!.split("\t")
# When the remote repo is empty we don't have tags.
break if target.nil?
# 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}"
break
end
name = path.split('/', 3).last
# We're only interested in tag references
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment