gitlabhq/gitlabhq — pull request #214 by mutewinter (2011-12-16 15:04:20+00:00)
Title: Project destroy relationship speed fix

Removes destroy callback for UsersProjects when a project is destroyed. Previously, the after_destroy hook for UsersProjects would be called for every user on the project, causing a delay of about 2 seconds per user when destroying a project.

This works because the gitolite config will be updated at at the end to remove the entry entirely, thereby removing the users anyway.