From 70d2fc8d3f97bce4f2b540600f410fc207dc5c13 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 13 Aug 2014 18:42:09 +0300 Subject: don't commit empty config in git output --- lib/oxidized/output/git.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1