]> source.dussan.org Git - redmine.git/commitdiff
Don't validate the repository when updating/clearing extra info (#19400).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 20 Mar 2015 10:23:12 +0000 (10:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 20 Mar 2015 10:23:12 +0000 (10:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14143 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository/git.rb

index 9b77dca8bb48c774e7c7e18ae6c6dc69e2f4367e..724a18a4d70e7e57b9c4d45b7d9f71fa84421e5c 100644 (file)
@@ -209,7 +209,7 @@ class Repository::Git < Repository
     end
     h["heads"] = repo_heads.dup
     merge_extra_info(h)
-    self.save
+    save(:validate => false)
   end
   private :save_revisions
 
@@ -251,7 +251,7 @@ class Repository::Git < Repository
     h = {}
     h["extra_report_last_commit"] = v
     merge_extra_info(h)
-    self.save
+    save(:validate => false)
   end
   private :clear_extra_info_of_changesets