[PATCH compass-ci] git_mirror.rb: gitclone.com does not works well

First, repos clone from gitclone.com don't have all history commits, which would make some pkgbuild fail. Second, gitclone.com seems will refuse too frequent download, when use it in git_mirror, often failed. Signed-off-by: Li Yuanchao <lyc163mail@163.com> --- lib/git_mirror.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index 9f254f5..dee0285 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -34,8 +34,6 @@ class GitMirror def get_url(url) if url.include?('gitee.com/') && File.exist?("/srv/git/#{url.delete_prefix('https://')}") url = "/srv/git/#{url.delete_prefix('https://')}" - elsif url.include?('://github.com') - url = "https://gitclone.com/#{url.split('://')[1]}" end return url end -- 2.23.0
participants (1)
-
Li Yuanchao