Skip to content

Commit 7812c11

Browse files
committed
Restore functionality for pushing non-standard refs (Partial go-gitea#16705)
Partial Backport go-gitea#16705 There was an inadvertent breaking change in go-gitea#15629 meaning that notes refs and other git extension refs will be automatically rejected. This PR removes this incorrect forced rejection of non-standard refs. Fix go-gitea#16688 Signed-off-by: Andrew Thornton <[email protected]>
1 parent b6508b8 commit 7812c11

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

routers/private/hook.go

-5
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,6 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) {
392392
})
393393
return
394394
}
395-
} else {
396-
log.Error("Unexpected ref: %s", refFullName)
397-
ctx.JSON(http.StatusInternalServerError, private.Response{
398-
Err: fmt.Sprintf("Unexpected ref: %s", refFullName),
399-
})
400395
}
401396
}
402397

0 commit comments

Comments
 (0)