summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-14 12:46:38 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-14 12:46:38 +0300
commit3d8996fa59713c4068d78cf796300091e88691a3 (patch)
tree30cebeec8c4cea336034fbb10ea087f60b7a81ed /lib/oxidized
parent70d2fc8d3f97bce4f2b540600f410fc207dc5c13 (diff)
don't commit empty type configs
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/output/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb
index d0083f5..e7725f9 100644
--- a/lib/oxidized/output/git.rb
+++ b/lib/oxidized/output/git.rb
@@ -38,7 +38,7 @@ class Git < Output
type_file = type + '/' + type_file
type_repo = repo
end
- update type_repo, type_file, output
+ update type_repo, type_file, output unless output.empty?
end
update type_repo, file, type_cfg unless type_cfg.empty?
end