add license to fork repo

This commit is contained in:
yp05327 2023-05-25 05:58:20 +00:00
parent c4c6da53c7
commit 0278775051

View File

@ -82,6 +82,7 @@ func ForkRepository(ctx context.Context, doer, owner *user_model.User, opts Fork
IsEmpty: opts.BaseRepo.IsEmpty,
IsFork: true,
ForkID: opts.BaseRepo.ID,
Licenses: opts.BaseRepo.Licenses,
}
oldRepoPath := opts.BaseRepo.RepoPath()