unable to PushUpdateAddTag to Repo: unable to get tag Commit: object does not exist #12348

Closed
opened 2025-11-02 10:06:30 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @yp05327 on GitHub (Jan 18, 2024).

Description

image

Using gogit and migrate https://github.com/torvalds/linux with releases

https://github.com/torvalds/linux/tree/v2.6.11
image

not sure whether this is a bug

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Originally created by @yp05327 on GitHub (Jan 18, 2024). ### Description ![image](https://github.com/go-gitea/gitea/assets/18380374/20e8ce45-1dd1-4c1e-9d31-3116cabb63f1) Using gogit and migrate https://github.com/torvalds/linux with releases https://github.com/torvalds/linux/tree/v2.6.11 ![image](https://github.com/go-gitea/gitea/assets/18380374/2e3e0079-2423-428c-8a95-e2c84302e24f) not sure whether this is a bug ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? build ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:06:30 -06:00
Author
Owner

@lunny commented on GitHub (Jan 18, 2024):

Looks like the tag point to a tree. I remember I have read the code about the related problem.

@lunny commented on GitHub (Jan 18, 2024): Looks like the tag point to a tree. I remember I have read the code about the related problem.
Author
Owner

@lunny commented on GitHub (Feb 6, 2024):

I believe this is a git's edgecase which only happen on linux itself. Maybe we need some trick to ignore it to avoid failure on gitea.

objecttype tagrefname:short v2.6.11-treeobject c39ae07f393806ccf406ef966e9a15afc43cc36aobjectname 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8ccreator contents This is the 2.6.11 tree object.

NOTE! There's no commit for this, since it happened before I started with git.
Eventually we'll import some sort of history, and that should tie this tree
object up to a real commit. In the meantime, this acts as an anchor point for
doing diffs etc under git.
@lunny commented on GitHub (Feb 6, 2024): I believe this is a git's edgecase which only happen on linux itself. Maybe we need some trick to ignore it to avoid failure on gitea. ``` objecttype tagrefname:short v2.6.11-treeobject c39ae07f393806ccf406ef966e9a15afc43cc36aobjectname 5dc01c595e6c6ec9ccda4f6f69c131c0dd945f8ccreator contents This is the 2.6.11 tree object. NOTE! There's no commit for this, since it happened before I started with git. Eventually we'll import some sort of history, and that should tie this tree object up to a real commit. In the meantime, this acts as an anchor point for doing diffs etc under git. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12348