summaryrefslogtreecommitdiff
path: root/lib/oxidized/output/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/output/git.rb')
-rw-r--r--lib/oxidized/output/git.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb
index f87ab66..0391d5d 100644
--- a/lib/oxidized/output/git.rb
+++ b/lib/oxidized/output/git.rb
@@ -28,11 +28,14 @@ class Git < Output
repo = @cfg.repo
outputs.types.each do |type|
+ type_cfg = ''
type_repo = File.join File.dirname(repo), type + '.git'
outputs.type(type).each do |output|
+ (type_cfg << output; next) if not output.name
type_file = file + '--' + output.name
update type_repo, type_file, output
end
+ update type_repo, file, type_cfg unless type_cfg.empty?
end
update repo, file, outputs.to_cfg