-
-
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 <wxiaoguang@gmail.com>
* giteaofficial/main: (21 commits) Support public code/issue access for private repositories (go-gitea#33127) Validate that the tag doesn't exist when creating a tag via the web (go-gitea#33241) [skip ci] Updated translations via Crowdin Switch back to `vue-tsc` (go-gitea#33248) Let API create and edit system webhooks, attempt 2 (go-gitea#33180) Fix incorrect ref "blob" (go-gitea#33240) Refactor RefName (go-gitea#33234) Refactor context RefName and RepoAssignment (go-gitea#33226) [skip ci] Updated translations via Crowdin Fix upload file form (go-gitea#33230) Fix mirror bug (go-gitea#33224) Remove unused CSS styles and move some styles to proper files (go-gitea#33217) Refactor context repository (go-gitea#33202) [skip ci] Updated translations via Crowdin Fix unpin hint on the pinned pull requests (go-gitea#33207) fix(cache): cache test triggered by non memory cache (go-gitea#33220) Update README.md (go-gitea#33149) Fix editor markdown not incrementing in a numbered list (go-gitea#33187) Some small refactors (go-gitea#33144) Fix sync fork for consistency (go-gitea#33147) ...
Fixes #33145
An integration test could be added.