-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed

Description
- Gitea version (or commit ref): 09ca391
- Git version: 2.22.0
- Operating system: macOS
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (https://try.gitea.io/yasuokav/cecil)
- No
- Not relevant
- 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.
Lines 156 to 162 in ca6fb00
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