]> source.dussan.org Git - redmine.git/commitdiff
Ignore empty diffs.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Dec 2007 20:11:44 +0000 (20:11 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Dec 2007 20:11:44 +0000 (20:11 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1014 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/abstract_adapter.rb

index c93fc6350633cb1896c0128ec9c67c76badc0e5c..138d7e647c8adedca0f5127f1eeb6dea05dd338b 100644 (file)
@@ -237,7 +237,8 @@ module Redmine
                 end
                 a = diff_table.add_line line
             end
-            self << diff_table
+            self << diff_table unless diff_table.empty?
+            self
         end
       end