-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Proposal] Drop git 1.x support, or fix the IsEmpty bug #19554
Comments
I would also vote for dropping git 1.x support |
We should probably define a minimum git version visibly in the docs and maybe emit a startup warning if it's too old. A good starter might be git 2.17 which is the latest upstream-supported version. |
@go-gitea/maintainers It seems that this proposal gets votes for Any objection? If no objection, then we can move on. |
I update the issue content to add two emoji to make vote easier. :) |
Since there is no objection (yet), so the PR comes, a very simple PR: silverwind:
Do you have some references about this information? I can not find the earliest supported git version. |
I was going off Wikipedia, not sure how accurate that info is, but the release dates seem to confirm it. |
Interesting .... I prefer maybe we do not need to hard-code these minor versions into code, without these detailed version, it reduces the maintenance workload, and gitea still works correctly. And there are a lot of git version check inside gitea, maybe they should be upgraded together in future. |
One consideration for the minimum is any associated security issues |
Thank you for the suggestion. However, the 3rdparty security is not related to Gitea directly. For example, there are other softwares like Database, Cache, SSH even Linux Kernel may have security problem, but Gitea can not (and should not) cover all of them. |
There is an obvious bug in Gitea that
IsEmpty
check always fails in git 1.x (git 1.x reports an error for that command), it makes many users only see empty repositories after they have pushed content in.(and more)
The only reason to support git 1.x IIRC is for CentOS 7.x users.
However, CentOS 7.x is quite old, and the users could always have other solutions: upgrade git (ius/wandisco/endpoint), or use docker to run Gitea.
Since Gitea is reaching 1.17, it's time to make the decision.
IsEmpty
bugI prefer to drop git 1.x support.
The text was updated successfully, but these errors were encountered: