Fix redirect after import fails.

This commit is contained in:
Douwe Maan 2015-11-11 16:25:01 +01:00
parent 01d2b1943f
commit 7b405d3064
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ class Projects::ImportsController < Projects::ApplicationController
if @project.import_finished?
redirect_to(project_path(@project)) and return
else
redirect_to new_namespace_project_import_path(@project.namespace,
@project) && return
redirect_to(new_namespace_project_import_path(@project.namespace,
@project)) and return
end
end
end