From 3d8996fa59713c4068d78cf796300091e88691a3 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Thu, 14 Aug 2014 12:46:38 +0300 Subject: don't commit empty type configs --- lib/oxidized/output/git.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1