Unusual bugs in web ui after force pushing #445

Closed
opened 2025-11-02 03:23:42 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @pgaskin on GitHub (Mar 9, 2017).

  • Gitea version (or commit ref): d2b2881
  • Git version: 2.9.3
  • Operating system: Ubuntu 16.10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes
    • No
    • Not relevant

Description

If you create some commits in a repo, then edit a file, then force push the repo after undoing commits, then edit another file, you get error messages or the commits you undid comes back, due to the local temp repo for the server being out of sync after the force push.

How to reproduce

  1. Create a repo
  2. Push a 3 different commits to it from the command line
  3. Edit a file in the web ui
  4. Pull it in the command line
  5. Undo the last 2 commits
  6. Force push
  7. Edit or create a file in the web ui
  8. Funny stuff will happen such as errors, and reappearing commits, depending on what you did.

Why it happens

I think this happens because the repo which the web ui edits does not get synced after a force push from the command line.

Originally created by @pgaskin on GitHub (Mar 9, 2017). - Gitea version (or commit ref): d2b2881 - Git version: 2.9.3 - Operating system: Ubuntu 16.10 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes - [ ] No - [ ] Not relevant ## Description If you create some commits in a repo, then edit a file, then force push the repo after undoing commits, then edit another file, you get error messages or the commits you undid comes back, due to the local temp repo for the server being out of sync after the force push. ### How to reproduce 1. Create a repo 2. Push a 3 different commits to it from the command line 3. Edit a file in the web ui 4. Pull it in the command line 5. Undo the last 2 commits 6. Force push 7. Edit or create a file in the web ui 8. Funny stuff will happen such as errors, and reappearing commits, depending on what you did. ### Why it happens I think this happens because the repo which the web ui edits does not get synced after a force push from the command line.
GiteaMirror added the type/bug label 2025-11-02 03:23:42 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#445