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

Failed to synchronize tags to releases for repository #7945

Closed
2 of 7 tasks
yasuokav opened this issue Aug 23, 2019 · 4 comments · Fixed by #7990
Closed
2 of 7 tasks

Failed to synchronize tags to releases for repository #7945

yasuokav opened this issue Aug 23, 2019 · 4 comments · Fixed by #7990
Labels
Milestone

Comments

@yasuokav
Copy link
Contributor

...odels/repo_mirror.go:301:runSync() [E] Failed to synchronize tags to releases for repository: pushUpdateAddTag: GetTag: object does not exist [id: 0.11, rel_path: ]

Description

This repository can reproduce this problem: https://github.com/jbevain/cecil.git

This error occurs when migrating or synchronizing the repository.

stdout, err := NewCommand("show-ref", "--", name).RunInDir(repo.Path)
if err != nil {
return "", err
}
fields := strings.Fields(stdout)
if len(fields) != 2 {
return "", ErrNotExist{ID: name}

show-ref in this repository returns two lines of results instead of one

$git show-ref 0.11
12da1bf7e0e10278e05eeb23adfc72760bbb6668 refs/heads/release/0.11
ec814ea6357bff732a6217e9c3b263ea0fb450c0 refs/tags/0.11

Screenshots

@yasuokav
Copy link
Contributor Author

yasuokav commented Aug 23, 2019

@richmahn

Can you check this issue? I guess this is caused by #7138

@richmahn
Copy link
Contributor

@yasuokav Ok, will check it out.

@j123b567
Copy link
Contributor

This is not enough. If you have tag name a/v1 and v1 this still fails.

@sapk
Copy link
Member

sapk commented Aug 27, 2019

Maybe we should use go-git now for this func : https://godoc.org/gopkg.in/src-d/go-git.v4#Repository.Tag

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
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.

5 participants