
16 Dec
2020
16 Dec
'20
3:51 p.m.
When vim file, there would be a hidden file, which is not yaml like. Such files should be ignored when load upstream-repos. Signed-off-by: Li Yuanchao <lyc163mail@163.com> --- lib/git_mirror.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index dee0285..389b185 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -130,6 +130,8 @@ class MirrorMain load_defaults(repodir) entry_list = Dir.entries(repodir) - Array['.', '..', 'DEFAULTS', '.ignore', '.git'] entry_list.each do |entry| + next if entry.start_with? '.' + traverse_repodir("#{repodir}/#{entry}") end else -- 2.23.0