- Gitea version (or commit ref): 09ca391
- Git version: 2.22.0
- Operating system: macOS
- Database (use
[x]):
- Can you reproduce the bug at https://try.gitea.io:
- Log gist:
...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
[x]):Description
This repository can reproduce this problem: https://github.com/jbevain/cecil.git
This error occurs when migrating or synchronizing the repository.
gitea/modules/git/repo_tag.go
Lines 156 to 162 in ca6fb00
show-refin this repository returns two lines of results instead of oneScreenshots