diff options
author | Stan Hu <stanhu@gmail.com> | 2016-04-04 14:59:54 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-04-05 11:18:13 -0700 |
commit | 934f1e9097485bbaebbe2759e995c77bb4391c5d (patch) | |
tree | f2860ed255f4185893d375d977e5046bca99b066 /app/controllers | |
parent | 353365c7f2646be7ab0efff45980cd781763696d (diff) | |
download | gitlab-ce-934f1e9097485bbaebbe2759e995c77bb4391c5d.tar.gz |
Fix Error 500 after renaming a project path
Closes #14885
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 8c3a74c8236..3cc37e59855 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -40,6 +40,9 @@ class ProjectsController < Projects::ApplicationController def update status = ::Projects::UpdateService.new(@project, current_user, project_params).execute + # Refresh the repo in case anything changed + @repository = project.repository + respond_to do |format| if status flash[:notice] = "Project '#{@project.name}' was successfully updated." |