We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f170e commit f8c1efeCopy full SHA for f8c1efe
routers/private/hook_post_receive.go
@@ -159,7 +159,7 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
159
}
160
161
// If we've pushed a branch (and not deleted it)
162
- if git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() {
+ if !git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() {
163
// First ensure we have the repository loaded, we're allowed pulls requests and we can get the base repo
164
if repo == nil {
165
repo = loadRepository(ctx, ownerName, repoName)
0 commit comments