Commit 700e4181 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Fix repository mirroring after Upstream update

parent 3251902b
...@@ -40,7 +40,8 @@ module RepositoryMirroring ...@@ -40,7 +40,8 @@ module RepositoryMirroring
name = ref.name.sub(/\Arefs\/remotes\/#{remote_name}\//, '') name = ref.name.sub(/\Arefs\/remotes\/#{remote_name}\//, '')
begin begin
branches << Gitlab::Git::Branch.new(raw_repository, name, ref.target) target_commit = Gitlab::Git::Commit.find(raw_repository, ref.target)
branches << Gitlab::Git::Branch.new(raw_repository, name, ref.target, target_commit)
rescue Rugged::ReferenceError rescue Rugged::ReferenceError
# Omit invalid branch # Omit invalid branch
end end
......
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