File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments