Skip to content

Commit 338d03c

Browse files
authored
Only show newly pushed branches message in the same repository (#26148)
Partly fixes #26130 This is a quick fix. #25812 will fully fix the bug.
1 parent bd4c7ce commit 338d03c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/git/branch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ func FindRecentlyPushedNewBranches(ctx context.Context, repoID, userID int64, ex
394394
err := db.GetEngine(ctx).
395395
Where("pusher_id=? AND is_deleted=?", userID, false).
396396
And("name <> ?", excludeBranchName).
397+
And("repo_id = ?", repoID).
397398
And("updated_unix >= ?", time.Now().Add(-time.Hour*6).Unix()).
398399
NotIn("name", subQuery).
399400
OrderBy("branch.updated_unix DESC").

0 commit comments

Comments
 (0)