Skip to content

Commit

Permalink
Only show newly pushed branches message in the same repository (#26148)
Browse files Browse the repository at this point in the history
Partly fixes #26130

This is a quick fix. #25812 will fully fix the bug.
  • Loading branch information
Zettat123 authored Jul 26, 2023
1 parent bd4c7ce commit 338d03c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/git/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64, ex
err := db.GetEngine(ctx).
Where("pusher_id=? AND is_deleted=?", userID, false).
And("name <> ?", excludeBranchName).
And("repo_id = ?", repoID).
And("updated_unix >= ?", time.Now().Add(-time.Hour*6).Unix()).
NotIn("name", subQuery).
OrderBy("branch.updated_unix DESC").
Expand Down

0 comments on commit 338d03c

Please sign in to comment.