FIX get mirror url bug

This commit is contained in:
jasder
2021-05-07 14:06:40 +08:00
parent c67686bdf5
commit b162b3357a
2 changed files with 6 additions and 1 deletions

View File

@@ -78,4 +78,9 @@ class Repository < ApplicationRecord
end
end
def remote_mirror_url
source_clone_url.blank? ? mirror_url : source_clone_url
end
end