summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-04-04 14:59:54 -0700
committerStan Hu <stanhu@gmail.com>2016-04-05 11:18:13 -0700
commit934f1e9097485bbaebbe2759e995c77bb4391c5d (patch)
treef2860ed255f4185893d375d977e5046bca99b066 /app/controllers/projects_controller.rb
parent353365c7f2646be7ab0efff45980cd781763696d (diff)
downloadgitlab-ce-934f1e9097485bbaebbe2759e995c77bb4391c5d.tar.gz
Fix Error 500 after renaming a project path
Closes #14885
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb3
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."