Fix forking an empty repository (#6637) (#6653)

Fixes #6633

Signed-off-by: Segev Finer <segev@codeocean.com>
This commit is contained in:
Segev Finer authored and zeripath committed 2019-04-16 20:47:09 +01:00
1 parent 5876e37ed4
commit 5236d8a936
2 files changed
+8 -7

No files matched your search

+1
View File
@@ -2432,6 +2432,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,
}