We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8c90e commit e9f4c2dCopy full SHA for e9f4c2d
routers/api/v1/repo/file.go
@@ -655,6 +655,7 @@ func UpdateFile(ctx *context.APIContext) {
655
apiOpts := web.GetForm(ctx).(*api.UpdateFileOptions)
656
if ctx.Repo.Repository.IsEmpty {
657
ctx.Error(http.StatusUnprocessableEntity, "RepoIsEmpty", fmt.Errorf("repo is empty"))
658
+ return
659
}
660
661
if apiOpts.BranchName == "" {
0 commit comments