Refactor repo.isBare to repo.isEmpty #5629 (#5714)

* Refactor repo.isBare to repo.isEmpty #5629

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Remove Sync call
This commit is contained in:
zeripath authored and techknowlogick committed 2019-01-17 19:01:04 -05:00
1 parent 9edc829c17
commit 07802a2bc5
39 files changed
+125 -81

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ func getForkRepository(ctx *context.Context) *models.Repository {
return nil
}
if forkRepo.IsBare || !perm.CanRead(models.UnitTypeCode) {
if forkRepo.IsEmpty || !perm.CanRead(models.UnitTypeCode) {
ctx.NotFound("getForkRepository", nil)
return nil
}