Recursivity needed if a fork is a fork of a fork.
This commit is contained in:
parent
b9a0f96d42
commit
b2c4675cb0
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class LfsObject < ActiveRecord::Base
|
|||
|
||||
def storage_project(project)
|
||||
if project && project.forked?
|
||||
project.forked_from_project
|
||||
storage_project(project.forked_from_project)
|
||||
else
|
||||
project
|
||||
end
|
||||
|
|
|
@ -220,7 +220,7 @@ module Gitlab
|
|||
|
||||
def storage_project(project)
|
||||
if project.forked?
|
||||
project.forked_from_project
|
||||
storage_project(project.forked_from_project)
|
||||
else
|
||||
project
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue