Commit b2c4675c authored by Marin Jankovski's avatar Marin Jankovski

Recursivity needed if a fork is a fork of a fork.

parent b9a0f96d
...@@ -8,7 +8,7 @@ class LfsObject < ActiveRecord::Base ...@@ -8,7 +8,7 @@ class LfsObject < ActiveRecord::Base
def storage_project(project) def storage_project(project)
if project && project.forked? if project && project.forked?
project.forked_from_project storage_project(project.forked_from_project)
else else
project project
end end
......
...@@ -220,7 +220,7 @@ module Gitlab ...@@ -220,7 +220,7 @@ module Gitlab
def storage_project(project) def storage_project(project)
if project.forked? if project.forked?
project.forked_from_project storage_project(project.forked_from_project)
else else
project project
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