Skip to content

Commit f8c1efe

Browse files
yp05327KN4CK3R
andauthored
1 parent 17f170e commit f8c1efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/private/hook_post_receive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
159159
}
160160

161161
// If we've pushed a branch (and not deleted it)
162-
if git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() {
162+
if !git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() {
163163
// First ensure we have the repository loaded, we're allowed pulls requests and we can get the base repo
164164
if repo == nil {
165165
repo = loadRepository(ctx, ownerName, repoName)

0 commit comments

Comments
 (0)