-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Restore functionality for early gits #7775
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
Restore functionality for early gits #7775
Conversation
|
Damn! That breaks the build. Ok what needs to happen is that the temporary repo just fetches the base and head branches into standard named branches. Perhaps these could simply be master and tracking to keep with the names the system uses internally. That way there is no change that there can be a collision - at present there is a small chance of this. I'm out of time to do this now so I'll have to leave this broken here for now. |
|
Great job tracking this one down! 🎉 |
|
How about extract merge bug to a separate PR? |
|
Hey @lunny, so feel free to extract out the second commit separately (which should fix #7754) - my thought process was that I couldn't replicate the problem until I had TestGit working again on my local machine and so I worked from there. Stupidly I forgot to run the full set of tests before pushing. I won't be able to get to look again at fixing this PR until the evening UK time. The first three commits should be separately extractable - the problem lies in the fourth. |
|
I think this is definitively solving a couple of issues, the whitelist problem is overcome. But in the following steps there are now issues. Noticeable is the double lines in the logging... Maybe a hint, see following comment from @sharpSteff We try to increase the logging settings in order to provide more information. The settings were not touched since ages and there was a deeper change in 1.9. That explains why we have so less information especially about "ROUTER" |
|
got problems with However |
|
@jdehaan if you can see if just the second commit solves the issue that would be good to know. The extra commits are to resolve issues with git <1.9 |
|
I understand. I will checkout & build 7ca5dd06688b85483eb42b1c702fc2152225c147 and report. I could take some time I got some urgent tasks on my desk. But I will definitively follow up this topic till the end ;-) |
|
@sharpSteff I deployed the version mentioned above (2nd commit of this PR). Could you please try out once again and report the result (at time of your convenience). |
Codecov Report
@@ Coverage Diff @@
## master #7775 +/- ##
==========================================
+ Coverage 41.84% 41.84% +<.01%
==========================================
Files 497 497
Lines 65745 65807 +62
==========================================
+ Hits 27510 27537 +27
- Misses 34707 34733 +26
- Partials 3528 3537 +9
Continue to review full report at Codecov.
|
|
OK so there are number of other issues with running old git versions. (Unfortunately most of these are probably my fault.) I will open a PR to track fixes for old git versions. |
7887ace to
04c67ed
Compare
|
Ok, so if you try to run Gitea and the test suite with git 1.7.2 on Gitea master it will fail. Similarly for 1.8. If you try to run Giteas integration test suite with lfs switched off it will currently fail. I think there's a few other versions that I test for in the pr. There's another slight efficiency change in that we won't get tags when doing pr merges and branch name conflicts are also now completely prevented during merges too. |
|
@zeripath Sorry, I was looking for something more specific, like whether a specific breaking changes in git or so. For example, I see the usage of "git remove" vs. "git rm" is one of them. But now I realize my question was kinda silly. 😄 |
|
No worries. It was a very boring PR finding when each option was added and if git required the option to be not present if it wasn't supported (For example git fetch --no-tags seems to be simply ignored by gits too old to have that support.) |
|
The more interesting things are in services/pull/merge.go and that's where the potential breakages are. I will take another look at those tomorrow myself. |
|
make L-G-T-M work |
|
Please send backport |
This PR does a number of things.
Fixes #7862
Fixes #7863