[SEMVER] X.Y.Z+A.B.C replaced with X.Y.Z+gitea-A.B.C
Gitea versions are * A.B.C * A.B.C+rc-0 * A.B.C+dev-5-g4fb9056 If Forgejo versions are: * X.Y.Z+A.B.C * X.Y.Z-rc0+A.B.C * X.Y.Z-dev-1232-g4fb905687+A.B.C It is non trivial for a client trying to sort out if the server responding to `/api/v1/version` is Forgejo or Gitea. The Forgejo version changes to be: * X.Y.Z+gitea-A.B.C * X.Y.Z-rc0+gitea-A.B.C * X.Y.Z-dev-1232-g4fb905687+gitea-A.B.C and a client can now: * Split the version with + * If the second part (the metadata) exists and contains "gitea", the answer server is Forgejo * Otherwise it is Gitea
This commit is contained in:
parent
7af1349c1d
commit
07b99560cc
Loading…
Reference in a new issue