Skip to content

switching to broken tags results in 500 #19979

Closed
@Fogapod

Description

@Fogapod

Description

Trying to switch to some tags of linux kernel results in 500. List of affected tags: v2.6.11, v2.6.11-tree (2 first tags, did not find other problematic ones).

Can be seen on gitea.com: https://gitea.com/marktsai0316/linux/src/tag/v2.6.11
Note: repository linked above shows 0 tags but they exist in revision list:
image

On my instance it shows proper tag amount but the error for those first 2 tags is the same.
Error message: ...ules/context/repo.go:945:func1() [E] [62aa070c] GetTagCommit: object does not exist [id: c39ae07f393806ccf406ef966e9a15afc43cc36a, rel_path: ]

Trying this locally:

$ git checkout tags/v2.6.11
fatal: Cannot switch branch to a non-commit 'tags/v2.6.11'

Gitea Version

1.17.0+dev-711-g1fef9a2d6 and 1.17.0+dev-719-gf0ce5470e

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Locally compiled binary

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions