Commit 23fabc08 authored by DJ Mountney's avatar DJ Mountney

Fixing import redirect loop

While importing, don't redirect import actions to the project page, even if the repository exists
parent e89ffd54
......@@ -37,7 +37,7 @@ class Projects::ImportsController < Projects::ApplicationController
private
def require_no_repo
if @project.repository_exists?
if @project.repository_exists? && !@project.import_in_progress?
redirect_to(namespace_project_path(@project.namespace, @project)) and return
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment