You recently pushed to this branch does not always appear on first push #11739

Open
opened 2025-11-02 09:46:20 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @delvh on GitHub (Sep 27, 2023).

Description

I've noticed that the You pushed on branch <branch> <time> ago message doesn't always appear when you open the repo after pushing the branch for the first time.
Subsequent pushes are handled correctly as intended.
But in my experiments, I only got the message 1 out of 3 times that I pushed a branch initially.
In particular, if you get the message for a branch, you will consistently get it with every page reload.
But if you don't get it, you will consistently not get it, no matter what you do.
Seems like something is getting inserted into the DB incorrectly.

Gitea Version

1.22.0+dev-47-g70f8d10fc

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

I cannot show the absence of something in a screenshot

Git Version

Whatever try.gitea.io is running

Operating System

Whatever try.gitea.io is running

How are you running Gitea?

try.gitea.io

Database

None

Originally created by @delvh on GitHub (Sep 27, 2023). ### Description I've noticed that the `You pushed on branch <branch> <time> ago` message doesn't always appear when you open the repo after pushing the branch for the first time. Subsequent pushes are handled correctly as intended. But in my experiments, I only got the message 1 out of 3 times that I pushed a branch initially. In particular, if you get the message for a branch, you will consistently get it with every page reload. But if you don't get it, you will consistently not get it, no matter what you do. Seems like something is getting inserted into the DB incorrectly. ### Gitea Version 1.22.0+dev-47-g70f8d10fc ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots I cannot show the absence of something in a screenshot ### Git Version Whatever try.gitea.io is running ### Operating System Whatever try.gitea.io is running ### How are you running Gitea? try.gitea.io ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:46:20 -06:00
Author
Owner

@lunny commented on GitHub (Mar 28, 2024):

This should be fixed by #29493. In previous implementation, the branches will be inserted async.

@lunny commented on GitHub (Mar 28, 2024): This should be fixed by #29493. In previous implementation, the branches will be inserted async.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11739