diff options
author | Saku Ytti <saku@ytti.fi> | 2014-08-14 13:32:12 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-08-14 13:32:12 +0300 |
commit | 995f61a9a90945f80a0ec2ffe5cc527039263fca (patch) | |
tree | 668d365c470e6ce5f4728d5bebdeb24e339435f3 /lib/oxidized | |
parent | 3d8996fa59713c4068d78cf796300091e88691a3 (diff) |
never accept empty config in commit
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/output/git.rb | 8 |
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 |