Skip to content
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

404 on commit page if amended a commit and force pushed #13737

Closed
1 of 6 tasks
mlthlschr opened this issue Nov 28, 2020 · 1 comment
Closed
1 of 6 tasks

404 on commit page if amended a commit and force pushed #13737

mlthlschr opened this issue Nov 28, 2020 · 1 comment

Comments

@mlthlschr
Copy link

mlthlschr commented Nov 28, 2020

  • Gitea version (or commit ref): 1.12.6
  • Git version: 2.24.3
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

I just recognized that I had a wrong letter (*) in my commit message (which made my CI fail as it could not parse the message). I amended the commit (git commit --amend) changing the message so it does not include the letter anymore. Then I force pushed it to gitea. Now, if I want to open the commit page of this very commit, it just opens in the 404 page.

The commit I amended was a commit generated by my account in gitea after squashing and merging a PR.

Some hint from the log:

 2020/11/28 16:00:10 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT max( id ) as id FROM `commit_status` WHERE (repo_id = ?) AND (sha = ?) GROUP BY context_hash ORDER BY max( id ) desc LIMIT 10 [27 b32d978e0197e35d16ca29fc288afd44d69d4bdc] - 902.783µs                                               
2020/11/28 16:00:10 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT `id`, `index`, `repo_id`, `state`, `sha`, `target_url`, `description`, `context_hash`, `context`, `creator_id`, `created_unix`, `updated_unix` FROM `commit_status` WHERE `id` IN (?) [1084] - 479.88µs                               
2020/11/28 16:00:11 ...uters/repo/commit.go:257:Diff() [E] GetDiffCommit: ParsePatch: Unexpected line in hunk: AAK/H,EAAI,EAAGG,EAAM4H,EAAU1H,OAAQL,EAAIG   
 [...]
 ,IAAM6D,KAAK7D,GACjBwJ,EAAM1B,IAAMjE,KAAKiE,GAKzB2C,SAAU,SAAUj 
@mlthlschr
Copy link
Author

Pulled the latest image from dockerhub after seeing this PR. Works now.

@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant