mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
Fix forking an empty repository (#6637)
Fixes #6633 Signed-off-by: Segev Finer <segev@codeocean.com>
This commit is contained in:
committed by
techknowlogick
parent
3fb038c53a
commit
ecfa5f1594
@ -2436,6 +2436,7 @@ func ForkRepository(doer, u *User, oldRepo *Repository, name, desc string) (_ *R
|
||||
Description: desc,
|
||||
DefaultBranch: oldRepo.DefaultBranch,
|
||||
IsPrivate: oldRepo.IsPrivate,
|
||||
IsEmpty: oldRepo.IsEmpty,
|
||||
IsFork: true,
|
||||
ForkID: oldRepo.ID,
|
||||
}
|
||||
|
Reference in New Issue
Block a user