Signed-off-by: Li Yuanchao lyc163mail@163.com --- lib/git_mirror.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index 7f265d9..ce1dc9e 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -349,13 +349,13 @@ class MirrorMain end end
- def handle_submodule(submodule, parent_project) + def handle_submodule(submodule) submodule.each_line do |line| next unless line.include?('url = ')
url = line.split(' = ')[1].chomp git_repo = url.split('://')[1] if url.include?('://') - return unless git_repo + break unless git_repo
@git_info[git_repo] = { 'url' => url, 'git_repo' => git_repo, 'is_submodule' => true } fork_stat_init(git_repo)
in general, we fix rubocop warning: title: $file_path: fix rubocop warning change log: $original_error
Thanks, Weitao
On Wed, Jan 06, 2021 at 10:08:36AM +0800, Li Yuanchao wrote:
Signed-off-by: Li Yuanchao lyc163mail@163.com
lib/git_mirror.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index 7f265d9..ce1dc9e 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -349,13 +349,13 @@ class MirrorMain end end
- def handle_submodule(submodule, parent_project)
def handle_submodule(submodule) submodule.each_line do |line| next unless line.include?('url = ')
url = line.split(' = ')[1].chomp git_repo = url.split('://')[1] if url.include?('://')
return unless git_repo
break unless git_repo @git_info[git_repo] = { 'url' => url, 'git_repo' => git_repo, 'is_submodule' => true } fork_stat_init(git_repo)
-- 2.23.0