-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
- Gitea version (or commit ref): 1.9.0+dev-358-ga200ca155
- Git version: N/A
- Operating system: Docker
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL) https://try.gitea.io/api/v1/repos/stephenc/repo/tags
- No
- Not relevant
- Log gist:
Description
The api/v1/repos/stephenc/repo/tags endpoint is not returning the lightweight tags correctly. See 8de0b0a#commitcomment-33968832
I have pushed the git repo and tags to try.gitea.io.
Here is the lightweight tag which resolves to a commit directly:
$ git show lightweight
commit 05958747e4a781e67f1ebd3248ddfba9d1846b40 (HEAD -> master, tag: lightweight, tag: annotated, origin/master, origin/HEAD)
Author: Stephen Connolly <stephenc@noreply.one-dash.com>
Date: Thu Aug 31 19:24:47 2017 +0000
Add 'Jenkinsfile'
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..5495493
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1 @@
+// something
\ No newline at end of file
Here is the annotated tag which resolves to a tag object
$ git show annotated
tag annotated
Tagger: Stephen Connolly <stephen.alan.connolly@gmail.com>
Date: Mon Jun 17 19:49:42 2019 +0100
annotated
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQEzBAABCgAdFiEEGap4SSwuDnWSnyiCgms2VIViMTgFAl0H4MYACgkQgms2VIVi
MTjYcAf/QdZ4QChhRjcnT5V5PgXD6gWBwvCnqgPcJm7QxK+IYRoBMili1oMUWGiL
J1Y5hvRopQLvScyyU544paYtM12/UYe5ovm9jUZlih+ijujmZ844xhC9WqCR6sDn
WcMm7EiRxEzyaUWwGC0zMoewW5yOk3dPBSKGXjWr3aZAkkyYW07ucItufR1Ufz3p
KYgmqaE9PqW1kn+FDb2o1/s1ZWOUqAP2t2oa76OYeTNm5fFHaRo3dcTXmgyzMIl1
DRpIxERB5QjKbvWoqj1lqEeawpv9gMfhxeKVTQYZqjM/08riKLiBLQuI37qvEWG/
r+H/0uWTdUUO0R3oL/hnpkRx++VY7g==
=ZZ+8
-----END PGP SIGNATURE-----
commit 05958747e4a781e67f1ebd3248ddfba9d1846b40 (HEAD -> master, tag: lightweight, tag: annotated, origin/master, origin/HEAD)
Author: Stephen Connolly <stephenc@noreply.one-dash.com>
Date: Thu Aug 31 19:24:47 2017 +0000
Add 'Jenkinsfile'
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..5495493
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1 @@
+// something
\ No newline at end of file
Here is the current result at https://try.gitea.io/api/v1/repos/stephenc/repo/tags:
[{
"name": "annotated",
"id": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"commit": {
"url": "https://try.gitea.io/api/v1/repos/stephenc/repo/git/commits/9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"sha": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d"
},
"zipball_url": "https://try.gitea.io/stephenc/repo/archive/annotated.zip",
"tarball_url": "https://try.gitea.io/stephenc/repo/archive/annotated.tar.gz"
}, {
"name": "lightweight",
"id": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"commit": {
"url": "https://try.gitea.io/api/v1/repos/stephenc/repo/git/commits/9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"sha": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d"
},
"zipball_url": "https://try.gitea.io/stephenc/repo/archive/lightweight.zip",
"tarball_url": "https://try.gitea.io/stephenc/repo/archive/lightweight.tar.gz"
}]
Expected result:
[{
"name": "annotated",
"id": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"commit": {
"url": "https://try.gitea.io/api/v1/repos/stephenc/repo/git/commits/9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d",
"sha": "9a4ac36d615d3e4a56635e31bb60b75bdebd5d6d"
},
"zipball_url": "https://try.gitea.io/stephenc/repo/archive/annotated.zip",
"tarball_url": "https://try.gitea.io/stephenc/repo/archive/annotated.tar.gz"
}, {
"name": "lightweight",
"id": "05958747e4a781e67f1ebd3248ddfba9d1846b40",
"commit": {
"url": "https://try.gitea.io/api/v1/repos/stephenc/repo/git/commits/05958747e4a781e67f1ebd3248ddfba9d1846b40",
"sha": "05958747e4a781e67f1ebd3248ddfba9d1846b40"
},
"zipball_url": "https://try.gitea.io/stephenc/repo/archive/lightweight.zip",
"tarball_url": "https://try.gitea.io/stephenc/repo/archive/lightweight.tar.gz"
}]