-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Dashboard showing duplicate commits #6636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
@stale nope |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
@stale still nope |
@andreymal @Akito13 could you test v1.9.1 fixed that? There is a bug duplicated webhooks fixed on v1.9.1 maybe it's related. |
@lunny still present in v1.9.1 (didn't test v1.9.3 yet) |
@andreymal old ones that was already duplicated won't go away. It should not happen anymore for new commits with latest version |
@lafriks this is not old, this happened 6 days ago with gitea v1.9.1 |
@lafriks tried v1.9.3 right now — still happens |
Could be, hard to tell |
Have you tried to |
Update 2019|22|21Since a couple dozen commits to Gitea this issue happens all the time when commiting from the WebUI. No matter the conditions. It does not matter anymore, if other files are already open or not. |
What version of Gitea? Could you try on 1.10? Just double check that you haven't got two Gitea hooks in your Gitea repositories? |
As in I used a couple of the most recent versions of Gitea from the past weeks. I also did not set up any Hooks manually. Even so, I still checked and I don't see any duplicate hooks. |
@zeripath check my comment here. I think this may be the cause. |
I'm still having this with v1.11.1, I just noticed that somehow I have duplicate hooks scripts on my Gitea server. /home/git/gitea-repositories/user/my-repo.git/hooks $ ls post-receive.d
gitea post-receive
/home/git/gitea-repositories/user/my-repo.git/hooks > $ cat post-receive.d/*
#!/usr/bin/env bash
"/home/git/gitea/gitea" hook --config='/home/git/gitea/custom/conf/app.ini' post-receive
#!/usr/bin/env bash
"/home/git/gitea/gitea" hook --config='/home/git/gitea/custom/conf/app.ini' post-receive
Not sure how that happened but I'm guessing that removing one of those in all of my repos will fix it. I think I had to do this before when migrating from Gogs, not sure when these hooks got duplicated. |
@4oo4 Post your results, when you are done applying the possible fix. |
The good ones are those named
(You can ignore the Please be aware that there could also be some other hooks placed by repository owners as long as you enabled them. |
@theAkito That fixed it for me. Basically in my To fix them en masse, first
Obviously you want to back up your repositories directory before running that. Then, when I committed to a repo that had the duplicate hooks, it only displayed once in the dashboard. I didn't realize it until now but for a while the duplicate ones were also giving me duplicate messages in the terminal when I ran |
Seems like this is related to this. Perbe being the root cause of this. |
[x]
):Description
Commits shown are duplicated on the dashboard (not actually duplicated, it just looks like it) in the following way:
If you do something like that, then the third commit will include all these previous commits that happened during the edition of the first file, on the dashboard.
Screenshots
The text was updated successfully, but these errors were encountered: