-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Required git version bump to 2.7.0 since v1.8.0 #6930
Comments
https://github.com/go-gitea/gitea/blob/master/modules/git/git.go is not right, but I think we may need to downgrade the git version requirement. |
Sorry about this. This was part of a bug fix for an extremely serious security issue. I will take a look - but could you also take a look to ensure that they're functionality equivalent too. |
I suspect this is the same issue as #6896 |
Maybe we need a docker with old git to run the tests. |
Well we should probably ensure that the git in our docker matches our minimum required git. |
OK |
[x]
):Description
Since v1.8.0 the mirror repos did not show the remote url anymore. The log file gaves the answer.
Gitea try to use the command "git remote get-url origin", but this was not supported by the installed version.
The change comes with following commit: b3e757a
(See changed file https://github.com/go-gitea/gitea/commits/master/models/repo_mirror.go)
The min required version of git is: GitVersionRequired = "1.7.2" - so there is no error about this incompatibility.
(See https://github.com/go-gitea/gitea/blob/master/modules/git/git.go)
Is it possible to use "git config --get remote.origin.url" instead of the current behavior? Temporary I use an current version of git from the scl repo (SoftwareCollections) for gitea, but I think it's a problem for most enterprise distros like centos and debian (which is very restrictive the most time, too).
The text was updated successfully, but these errors were encountered: