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

Fixing import redirect loop

While importing, don't redirect import actions to the project page, even if the repository exists
parent 7c0cd20b9319
......@@ -37,7 +37,7 @@ def show
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
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