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 dc48eb0 commit 2df38afCopy full SHA for 2df38af
routers/api/v1/repo/file.go
@@ -649,6 +649,7 @@ func UpdateFile(ctx *context.APIContext) {
649
apiOpts := web.GetForm(ctx).(*api.UpdateFileOptions)
650
if ctx.Repo.Repository.IsEmpty {
651
ctx.Error(http.StatusUnprocessableEntity, "RepoIsEmpty", fmt.Errorf("repo is empty"))
652
+ return
653
}
654
655
if apiOpts.BranchName == "" {
0 commit comments