summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/repository.rb4
-rw-r--r--app/models/repository/git.rb6
2 files changed, 6 insertions, 4 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 21e97bb6e..475445ae5 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -501,9 +501,5 @@ class Repository < ActiveRecord::Base
self.class.connection.delete("DELETE FROM #{ci} WHERE #{ci}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cp} WHERE #{cp}.changeset_id IN (SELECT #{cs}.id FROM #{cs} WHERE #{cs}.repository_id = #{id})")
self.class.connection.delete("DELETE FROM #{cs} WHERE #{cs}.repository_id = #{id}")
- clear_extra_info_of_changesets
- end
-
- def clear_extra_info_of_changesets
end
end
diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb
index 18797315f..9b77dca8b 100644
--- a/app/models/repository/git.rb
+++ b/app/models/repository/git.rb
@@ -254,4 +254,10 @@ class Repository::Git < Repository
self.save
end
private :clear_extra_info_of_changesets
+
+ def clear_changesets
+ super
+ clear_extra_info_of_changesets
+ end
+ private :clear_changesets
end