-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix sync fork for consistency #33147
Conversation
I have some tests and will add them (see Improve "merge upstream" (sync fork) #33148 ) But I am not sure whether we should still use the "add remote" trick here, it seems fragile and I am not sure whether it is really helpful in daily usage. |
This is really what I am concerned about before submitting the PR. One more bug I found on |
If you have more ideas about the problem, feel free to take #33148 (there are more tests, I could close my PR if you'd like to use it in your PR) |
At the moment, there is something unclear in my mind. There could be 2 behaviors:
|
I see~ For 1. I did not notice this is the intended behavior of Gitea right now, as I am studying the code, I refer to GitHub a lot, Github has I think we can simplify this PR without this issue first.
I reviewed it, and this is nice, how can I use the test? Must you close it so that I can use it, or I can just reference it to create something like |
Actually I am not sure which behavior is better for end users. Maybe following GitHub's behavior is better since it is widely used. 🤣
Some possible choices:
|
If you don't mind, I think I can merge #33148 here, then we do not need to use a separate PR to handle the similar tests. |
829ff2a
to
1ec4df8
Compare
Made some new changes:
|
Fixes go-gitea#33145 An integration test could be added. --------- Co-authored-by: wxiaoguang <[email protected]>
Backport #33147 by changchaishi Fixes #33145 An integration test could be added. --------- Co-authored-by: Chai-Shi <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
Fixes #33145
An integration test could be added.