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

This commit is contained in:
Marin Jankovski 2015-12-04 12:32:13 +01:00
parent b9a0f96d42
commit b2c4675cb0
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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