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://%27)%7D") url = "/srv/git/#{url.delete_prefix('https://%27)%7D" - elsif url.include?('://github.com') - url = "https://gitclone.com/#%7Burl.split(%27://%27)%5B1%5D%7D" end return url end