System Hook for 'project_rename' is not called when the project is renamed.
Summary
System Hook for project_rename is only called when the path gets renamed. It is not called when the project name is changed.
Steps to reproduce
Register a system hook and rename a newly created project. You will see that the 'project_rename' event is only fired when the path gets changed.
Expected behavior
One would expect that system hooks are also called when only changing the name of a project.
Relevant logs and/or screenshots
Output of checks
Results of GitLab Application Check
Results of GitLab Environment Info
Possible fixes
SystemHooksService.new.execute_hooks_for(self, :rename) in routine 'rename_repo' (line 735) in https://gitlab.com/gitlab-org/gitlab-ce/blob/529c5821305cf152770e5cb762adc5ee2c0143b8/app/models/project.rb gets executed in the 'if gitlab_shell.mv_repository(old_path_with_namespace, new_path_with_namespace)' block, but it should be executed generally.