Adopting a "packed-refs" repository with tags #11334

Closed
opened 2025-11-02 09:34:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @KazzmanK on GitHub (Jul 25, 2023).

Feature Description

Lets say we have a repository (windows)

mkdir packed
cd packed
git init
echo test > test.txt
git status
git add test.txt
git commit
git tag tag1
git show tag1
git pack-refs

now we have a packed repository. lets convert it to bare

copy .git ../packed.git
cd ..
cd packed.git
git config --bool core.bare true

Now lets adopt this repository by Gitea

It is adopted, but I was unable to make Tags working. Tags remains 0, git push with force tags also says nothing to push.
The only way - push this (non bare) repository to emptyv repo in Gitea with tags. Only this way it shows tags in UI and in repo itself.

Can anyone try to reproduce and verify if it is a bug.

Screenshots

No response

Originally created by @KazzmanK on GitHub (Jul 25, 2023). ### Feature Description Lets say we have a repository (windows) ``` mkdir packed cd packed git init echo test > test.txt git status git add test.txt git commit git tag tag1 git show tag1 git pack-refs ``` now we have a packed repository. lets convert it to bare ``` copy .git ../packed.git cd .. cd packed.git git config --bool core.bare true ``` Now lets adopt this repository by Gitea It is adopted, but I was unable to make Tags working. Tags remains 0, git push with force tags also says nothing to push. The only way - push this (non bare) repository to emptyv repo in Gitea with tags. Only this way it shows tags in UI and in repo itself. Can anyone try to reproduce and verify if it is a bug. ### Screenshots _No response_
GiteaMirror added the type/bug label 2025-11-02 09:34:39 -06:00
Author
Owner

@lunny commented on GitHub (Jul 26, 2023):

This maybe a bug that when adopting, tags are not synced into database.

@lunny commented on GitHub (Jul 26, 2023): This maybe a bug that when adopting, tags are not synced into database.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11334