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

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

Closed
KazzmanK opened this issue Jul 25, 2023 · 1 comment · Fixed by #26816
Closed

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

KazzmanK opened this issue Jul 25, 2023 · 1 comment · Fixed by #26816
Labels

Comments

@KazzmanK
Copy link
Contributor

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

@KazzmanK KazzmanK added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 25, 2023
@lunny lunny added type/bug and removed type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jul 26, 2023
@lunny
Copy link
Member

lunny commented Jul 26, 2023

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

techknowlogick pushed a commit that referenced this issue Aug 31, 2023
Fixes #26138

Sync the tags into database when adopting repos

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Aug 31, 2023
Fixes go-gitea#26138

Sync the tags into database when adopting repos

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
silverwind added a commit that referenced this issue Aug 31, 2023
Backport #26816 by @Zettat123

Fixes #26138

Sync the tags into database when adopting repos

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2023
project-mirrors-bot-tu bot pushed a commit to project-mirrors/forgejo-as-gitea-fork that referenced this issue Jan 23, 2025
Backport go-gitea#26816 by @Zettat123

Fixes go-gitea#26138

Sync the tags into database when adopting repos

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
(cherry picked from commit 302c03c)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants