summaryrefslogtreecommitdiff
path: root/lib/oxidized/output
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-14 13:32:12 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-14 13:32:12 +0300
commit995f61a9a90945f80a0ec2ffe5cc527039263fca (patch)
tree668d365c470e6ce5f4728d5bebdeb24e339435f3 /lib/oxidized/output
parent3d8996fa59713c4068d78cf796300091e88691a3 (diff)
never accept empty config in commit
Diffstat (limited to 'lib/oxidized/output')
-rw-r--r--lib/oxidized/output/git.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb
index e7725f9..0c73638 100644
--- a/lib/oxidized/output/git.rb
+++ b/lib/oxidized/output/git.rb
@@ -38,13 +38,12 @@ class Git < Output
type_file = type + '/' + type_file
type_repo = repo
end
- update type_repo, type_file, output unless output.empty?
+ update type_repo, type_file, output
end
- update type_repo, file, type_cfg unless type_cfg.empty?
+ update type_repo, file, type_cfg
end
- output = outputs.to_cfg
- update repo, file, output unless output.empty?
+ update repo, file, outputs.to_cfg
end
@@ -66,6 +65,7 @@ class Git < Output
private
def update repo, file, data
+ return if data.empty?
if @opt[:group]
repo = File.join File.dirname(repo), @opt[:group] + '.git'
end