Skip to content

Commit 7a3b301

Browse files
committed
update comment
1 parent dc262dc commit 7a3b301

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

routers/web/repo/view_home.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,9 @@ func handleRepoEmptyOrBroken(ctx *context.Context) {
261261
return
262262
}
263263

264-
// the repo is not really empty, so we should update the modal in database
265-
// such problem may be caused by:
266-
// 1) an error occurs during pushing/receiving. 2) the user replaces an empty git repo manually
267-
// and even more: the IsEmpty flag is deeply broken and should be removed with the UI changed to manage to cope with empty repos.
268-
// it's possible for a repository to be non-empty by that flag but still 500
269-
// because there are no branches - only tags -or the default branch is non-extant as it has been 0-pushed.
264+
// The repo is not really empty, so we should update the model in database, such problem may be caused by:
265+
// 1) an error occurs during pushing/receiving.
266+
// 2) the user replaces an empty git repo manually.
270267
updateContextRepoEmptyAndStatus(ctx, false, repo_model.RepositoryReady)
271268
if err := repo_module.UpdateRepoSize(ctx, ctx.Repo.Repository); err != nil {
272269
ctx.ServerError("UpdateRepoSize", err)

0 commit comments

Comments
 (0)