diff options
author | Robert Speicher <rspeicher@gmail.com> | 2020-09-14 20:35:35 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2020-09-14 20:35:35 +0300 |
commit | 72aa86edbc663570fcd9d54d549e9ee3f9dbcdf8 (patch) | |
tree | 893c23cdf13f6dee6d7e0edd390e489efe9796e5 | |
parent | 8101147ce94f8e130fd7cfeedbaa8b9f440dfd35 (diff) |
Add debug logging for remote mirror divergent refs
We're seeing a transient failure in mirroring for the gitlab-rails
`master` branch and this is a first step towards debugging it.
-rw-r--r-- | ruby/lib/gitlab/git/remote_mirror.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby/lib/gitlab/git/remote_mirror.rb b/ruby/lib/gitlab/git/remote_mirror.rb index 45a1936a1..0d4a6b34b 100644 --- a/ruby/lib/gitlab/git/remote_mirror.rb +++ b/ruby/lib/gitlab/git/remote_mirror.rb @@ -82,6 +82,7 @@ module Gitlab if repository.ancestor?(remote_target&.id, local_target&.id) true else + Gitlab::GitLogger.info("Divergent ref in #{repository.path} due to ancestry -- remote:#{remote_target&.id}, local:#{local_target&.id}") @divergent_refs << ref.refname false end |