diff --git a/lib/oxidized/output/git.rb b/lib/oxidized/output/git.rb
index <HASH>..<HASH> 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
don't commit empty config in git output