summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-13 18:42:09 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-13 18:42:09 +0300
commit70d2fc8d3f97bce4f2b540600f410fc207dc5c13 (patch)
treeccae5ba9d1b800adfdef4c9f2857ea30be0b8d0b /lib
parente53e9c394ebb512260d3f91b14ff5dc3798019ff (diff)
don't commit empty config in git output
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/output/git.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb
index 2b86f3f..d0083f5 100644
--- a/lib/oxidized/output/git.rb
+++ b/lib/oxidized/output/git.rb
@@ -43,7 +43,8 @@ class Git < Output
update type_repo, file, type_cfg unless type_cfg.empty?
end
- update repo, file, outputs.to_cfg
+ output = outputs.to_cfg
+ update repo, file, output unless output.empty?
end