Skip to content

Commit

Permalink
Restore functionality for pushing non-standard refs (Partial go-gitea…
Browse files Browse the repository at this point in the history
…#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 <art27@cantab.net>
  • Loading branch information
zeripath committed Aug 16, 2021
1 parent b6508b8 commit 7812c11
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions routers/private/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) {
})
return
}
} else {
log.Error("Unexpected ref: %s", refFullName)
ctx.JSON(http.StatusInternalServerError, private.Response{
Err: fmt.Sprintf("Unexpected ref: %s", refFullName),
})
}
}

Expand Down

0 comments on commit 7812c11

Please sign in to comment.